ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/network_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/network_stats.c (file contents):
Revision 1.41 by pajs, Sat Feb 14 11:33:33 2004 UTC vs.
Revision 1.43 by ats, Sat Feb 14 15:48:42 2004 UTC

# Line 48 | Line 48
48   typedef __uint8_t u8;
49   typedef __uint16_t u16;
50   typedef __uint32_t u32;
51 + typedef __uint64_t u64;
52   #include <linux/ethtool.h>
53   #include <linux/sockios.h>
54   #include <unistd.h>
# Line 375 | Line 376 | network_iface_stat_t *get_network_iface_stats(int *ent
376          static network_iface_stat_t *network_iface_stats;
377          network_iface_stat_t *network_iface_stat_ptr;
378          static int sizeof_network_iface_stats=0;        
379 <        static int ifaces;
379 >        int ifaces = 0;
380  
381   #ifdef SOLARIS
382          kstat_ctl_t *kc;
# Line 395 | Line 396 | network_iface_stat_t *get_network_iface_stats(int *ent
396          char line[8096];
397          int sock;
398   #endif
399 <        ifaces = 0;
399 >
400   #ifdef ALLBSD
401          if(getifaddrs(&net) != 0){
402                  return NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines