# | Line 1 | Line 1 | |
---|---|---|
1 | /* | |
2 | < | * i-scream central monitoring system |
2 | > | * i-scream libstatgrab |
3 | * http://www.i-scream.org | |
4 | * Copyright (C) 2000-2004 i-scream | |
5 | * | |
# | Line 53 | Line 53 | sg_user_stats *sg_get_user_stats(){ | |
53 | #endif | |
54 | #ifdef ALLBSD | |
55 | struct utmp entry; | |
56 | < | FILE *f; |
56 | > | FILE *f; |
57 | #endif | |
58 | ||
59 | #if defined(SOLARIS) || defined(LINUX) || defined(CYGWIN) | |
# | Line 75 | Line 75 | sg_user_stats *sg_get_user_stats(){ | |
75 | #endif | |
76 | #ifdef ALLBSD | |
77 | if ((f=fopen(_PATH_UTMP, "r")) == NULL){ | |
78 | + | sg_set_error_with_errno(SG_ERROR_OPEN, _PATH_UTMP); |
79 | return NULL; | |
80 | } | |
81 | while((fread(&entry, sizeof(entry),1,f)) != 0){ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |