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

Diff for /src/usr.bin/top/Attic/username.c between version 1.9 and 1.10

version 1.9, 2003/06/12 23:09:30 version 1.10, 2003/06/13 21:52:25
Line 76 
Line 76 
 /* We depend on that for hash_table and YOUR compiler had BETTER do it! */  /* We depend on that for hash_table and YOUR compiler had BETTER do it! */
 struct hash_el  hash_table[Table_size];  struct hash_el  hash_table[Table_size];
   
 void  
 init_hash(void)  
 {  
         /*  
          *  There used to be some steps we had to take to initialize things.  
          *  We don't need to do that anymore, but we will leave this stub in  
          *  just in case future changes require initialization steps.  
          */  
 }  
   
 char *  char *
 username(uid_t uid)  username(uid_t uid)
 {  {
Line 108 
Line 98 
          * Eventually we want this to enter everything in the hash table, but           * Eventually we want this to enter everything in the hash table, but
          * for now we just do it simply and remember just the result.           * for now we just do it simply and remember just the result.
          */           */
   
         if ((pwd = getpwnam(username)) == NULL)          if ((pwd = getpwnam(username)) == NULL)
                 return (-1);                  return (-1);
   

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10