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

Comparing projects/libstatgrab/src/libstatgrab/os_info.c (file contents):
Revision 1.6 by tdb, Sun Aug 24 20:24:09 2003 UTC vs.
Revision 1.7 by ats, Sat Oct 18 22:15:35 2003 UTC

# Line 99 | Line 99 | general_stat_t *get_general_stats(){
99          fclose(f);
100   #endif
101   #ifdef FREEBSD
102 <        if (sysctlbyname("kern.boottime", NULL, &size, NULL, NULL) < 0){
103 <                return NULL;
104 <        }
105 <        if (sysctlbyname("kern.boottime", &boottime, &size, NULL, NULL) < 0){
102 >        if (sysctlbyname("kern.boottime", &boottime, &size, NULL, 0) < 0){
103                  return NULL;
104          }
105          time(&curtime);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines