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

Comparing projects/libstatgrab/src/libstatgrab/user_stats.c (file contents):
Revision 1.25 by tdb, Wed Apr 7 21:08:40 2004 UTC vs.
Revision 1.26 by ats, Sun Jul 18 21:30:12 2004 UTC

# 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(SG_ERROR_OPEN, _PATH_UTMP);
78 >                sg_set_error_with_errno(SG_ERROR_OPEN, _PATH_UTMP);
79                  return NULL;
80          }
81          while((fread(&entry, sizeof(entry),1,f)) != 0){

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines