1 |
|
/* |
2 |
|
* i-scream central monitoring system |
3 |
< |
* http://www.i-scream.org.uk |
4 |
< |
* Copyright (C) 2000-2002 i-scream |
3 |
> |
* http://www.i-scream.org |
4 |
> |
* Copyright (C) 2000-2003 i-scream |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or |
7 |
|
* modify it under the terms of the GNU General Public License |
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 |
> |
size = sizeof boottime; |
103 |
> |
if (sysctlbyname("kern.boottime", &boottime, &size, NULL, 0) < 0){ |
104 |
|
return NULL; |
105 |
|
} |
106 |
|
time(&curtime); |