[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.3 and 1.4

version 1.3, 2001/07/27 17:04:06 version 1.4, 2001/11/19 19:02:17
Line 70 
Line 70 
   
 char *username(uid)  char *username(uid)
   
 register uid_t uid;  uid_t uid;
   
 {  {
     register int hashindex;      int hashindex;
   
     hashindex = hashit(uid);      hashindex = hashit(uid);
     if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid))      if (is_empty_hash(hashindex) || (hash_table[hashindex].uid != uid))
Line 109 
Line 109 
   
 static int enter_user(uid, name, wecare)  static int enter_user(uid, name, wecare)
   
 register uid_t  uid;  uid_t  uid;
 register char *name;  char *name;
 int wecare;             /* 1 = enter it always, 0 = nice to have */  int wecare;             /* 1 = enter it always, 0 = nice to have */
   
 {  {
     register int hashindex;      int hashindex;
   
 #ifdef DEBUG  #ifdef DEBUG
     fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare);      fprintf(stderr, "enter_hash(%d, %s, %d)\n", uid, name, wecare);
Line 146 
Line 146 
   
 static int get_user(uid)  static int get_user(uid)
   
 register uid_t uid;  uid_t uid;
   
 {  {
     struct passwd *pwd;      struct passwd *pwd;

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