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

Diff for /src/usr.bin/finger/util.c between version 1.16 and 1.17

version 1.16, 2003/06/03 02:56:08 version 1.17, 2003/06/10 22:20:46
Line 59 
Line 59 
 char *estrdup(char *);  char *estrdup(char *);
   
 void  void
 find_idle_and_ttywrite(w)  find_idle_and_ttywrite(WHERE *w)
         WHERE *w;  
 {  {
         struct stat sb;          struct stat sb;
   
Line 88 
Line 87 
 }  }
   
 void  void
 userinfo(pn, pw)  userinfo(PERSON *pn, struct passwd *pw)
         PERSON *pn;  
         struct passwd *pw;  
 {  {
         char *p;          char *p;
         char *bp, name[1024];          char *bp, name[1024];
Line 131 
Line 128 
 }  }
   
 int  int
 match(pw, user)  match(struct passwd *pw, char *user)
         struct passwd *pw;  
         char *user;  
 {  {
         char *p, *t;          char *p, *t;
         char name[1024];          char name[1024];
Line 152 
Line 147 
   
 /* inspired by usr.sbin/sendmail/util.c::buildfname */  /* inspired by usr.sbin/sendmail/util.c::buildfname */
 void  void
 expandusername(gecos, login, buf, buflen)  expandusername(char *gecos, char *login, char *buf, int buflen)
         char *gecos;  
         char *login;  
         char *buf;  
         int buflen;  
 {  {
         char *p, *bp;          char *p, *bp;
   
Line 186 
Line 177 
 }  }
   
 void  void
 enter_lastlog(pn)  enter_lastlog(PERSON *pn)
         PERSON *pn;  
 {  {
         WHERE *w;          WHERE *w;
         static int opened, fd;          static int opened, fd;
Line 236 
Line 226 
 }  }
   
 void  void
 enter_where(ut, pn)  enter_where(struct utmp *ut, PERSON *pn)
         struct utmp *ut;  
         PERSON *pn;  
 {  {
         WHERE *w = walloc(pn);          WHERE *w = walloc(pn);
   
Line 252 
Line 240 
 }  }
   
 PERSON *  PERSON *
 enter_person(pw)  enter_person(struct passwd *pw)
         struct passwd *pw;  
 {  {
         PERSON *pn, **pp;          PERSON *pn, **pp;
   
Line 280 
Line 267 
 }  }
   
 PERSON *  PERSON *
 find_person(name)  find_person(char *name)
         char *name;  
 {  {
         PERSON *pn;          PERSON *pn;
   
Line 294 
Line 280 
 }  }
   
 int  int
 hash(name)  hash(char *name)
         char *name;  
 {  {
         int h, i;          int h, i;
   
Line 307 
Line 292 
 }  }
   
 PERSON *  PERSON *
 palloc()  palloc(void)
 {  {
         PERSON *p;          PERSON *p;
   
Line 317 
Line 302 
 }  }
   
 WHERE *  WHERE *
 walloc(pn)  walloc(PERSON *pn)
         PERSON *pn;  
 {  {
         WHERE *w;          WHERE *w;
   
Line 335 
Line 319 
 }  }
   
 char *  char *
 prphone(num)  prphone(char *num)
         char *num;  
 {  {
         char *p;          char *p;
         int len;          int len;
Line 390 
Line 373 
  * The caller is responsible for free()'ing the returned string.   * The caller is responsible for free()'ing the returned string.
  */   */
 char *  char *
 vs(src)  vs(char *src)
         char *src;  
 {  {
         char *dst;          char *dst;
   

Legend:
Removed from v.1.16  
changed lines
  Added in v.1.17