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.10 by pajs, Sat Mar 22 11:42:10 2003 UTC vs.
Revision 1.13 by pajs, Mon Mar 31 13:24:12 2003 UTC

# Line 25 | Line 25
25   #include <stdlib.h>
26   #include <string.h>
27   #include "statgrab.h"
28 < #include "time.h"
28 > #include <time.h>
29   #ifdef SOLARIS
30   #include <kstat.h>
31   #include <sys/sysinfo.h>
# Line 90 | Line 90 | network_stat_t *get_network_stats(int *entries){
90  
91   #ifdef LINUX
92          FILE *f;
93 <        /* Horrible big enough, but it should be quite easily */
93 >        /* Horrible big enough, but it should be easily big enough */
94          char line[8096];
95          regex_t regex;
96          regmatch_t line_match[4];
# Line 183 | Line 183 | network_stat_t *get_network_stats(int *entries){
183  
184                  interfaces++;
185          }
186 +        fclose(f);
187 +        regfree(&regex);
188  
189   #endif
190          *entries=interfaces;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines