[BACK]Return to getname.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mail

Diff for /src/usr.bin/mail/Attic/getname.c between version 1.2 and 1.3

version 1.2, 1996/06/11 12:53:40 version 1.3, 1997/07/13 21:21:13
Line 58 
Line 58 
         struct passwd *pw;          struct passwd *pw;
   
         if ((pw = getpwuid(uid)) == NULL)          if ((pw = getpwuid(uid)) == NULL)
                 return NOSTR;                  return(NOSTR);
         return pw->pw_name;          return(pw->pw_name);
 }  }
   
 /*  /*
Line 73 
Line 73 
         struct passwd *pw;          struct passwd *pw;
   
         if ((pw = getpwnam(name)) == NULL)          if ((pw = getpwnam(name)) == NULL)
                 return -1;                  return(-1);
         return pw->pw_uid;          return(pw->pw_uid);
 }  }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3