~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to agent/mibgroup/ip-mib/data_access/systemstats_common.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 *  Systemstats MIB architecture support
3
3
 *
4
 
 * $Id: systemstats_common.c 11913 2005-02-08 21:58:36Z nba $
 
4
 * $Id: systemstats_common.c 17714 2009-08-04 10:57:52Z jsafranek $
5
5
 */
6
6
#include <net-snmp/net-snmp-config.h>
7
7
#include <net-snmp/net-snmp-includes.h>
340
340
    if (0 == need_wrap_check) {
341
341
        SNMP_FREE(prev_vals->old_stats);
342
342
    }
343
 
    
344
 
    /*
345
 
     * update old stats from new stats.
346
 
     * careful - old_stats is a pointer to stats...
347
 
     */
348
 
    memcpy(prev_vals->old_stats, &new_vals->stats, sizeof(new_vals->stats));
349
 
    
 
343
    else {
 
344
        /*
 
345
         * update old stats from new stats.
 
346
         * careful - old_stats is a pointer to stats...
 
347
         */
 
348
        memcpy(prev_vals->old_stats, &new_vals->stats, sizeof(new_vals->stats));
 
349
    }
350
350
    return 0;
351
351
}
352
352