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

Diff for /src/usr.bin/chpass/chpass.c between version 1.22 and 1.23

version 1.22, 2002/03/14 06:51:41 version 1.23, 2002/06/27 19:02:40
Line 43 
Line 43 
 #ifndef lint  #ifndef lint
 #if 0  #if 0
 static char sccsid[] = "@(#)chpass.c    8.4 (Berkeley) 4/2/94";  static char sccsid[] = "@(#)chpass.c    8.4 (Berkeley) 4/2/94";
 #else  #else
 static char rcsid[] = "$OpenBSD$";  static char rcsid[] = "$OpenBSD$";
 #endif  #endif
 #endif /* not lint */  #endif /* not lint */
Line 88 
Line 88 
 void    usage(void);  void    usage(void);
   
 int  int
 main(argc, argv)  main(int argc, char *argv[])
         int argc;  
         char **argv;  
 {  {
         struct passwd *pw, lpw;          struct passwd *pw = NULL, lpw;
         int i, ch, pfd, tfd, dfd;          int i, ch, pfd, tfd, dfd;
         char *arg;          char *arg = NULL;
         sigset_t fullset;          sigset_t fullset;
   
 #ifdef  YP  #ifdef  YP
Line 133 
Line 131 
   
 #ifdef  YP  #ifdef  YP
         if (op == LOADENTRY && use_yp)          if (op == LOADENTRY && use_yp)
                 errx(1, "cannot load entry using NIS.\n\tUse the -l flag to load local.");                  errx(1, "cannot load using YP, use -l to load local.");
 #endif  #endif
         uid = getuid();          uid = getuid();
   
Line 240 
Line 238 
 }  }
   
 void  void
 baduser()  baduser(void)
 {  {
   
         errx(1, "%s", strerror(EACCES));          errx(1, "%s", strerror(EACCES));
 }  }
   
 void  void
 tempcleanup()  tempcleanup(void)
 {  {
   
         unlink(tempname);          unlink(tempname);
 }  }
   
 void  void
 kbintr(signo)  kbintr(int signo)
         int signo;  
 {  {
         struct iovec iv[5];          struct iovec iv[5];
   
Line 278 
Line 275 
 }  }
   
 void  void
 usage()  usage(void)
 {  {
   
 #ifdef  YP  #ifdef  YP

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23