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

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

version 1.22, 2006/04/02 04:13:07 version 1.23, 2006/05/27 23:42:08
Line 83 
Line 83 
 void  void
 print_passwd(char *string, int operation, void *extra)  print_passwd(char *string, int operation, void *extra)
 {  {
         char msalt[3], *salt;          char msalt[3], *salt, *cryptstr;
         login_cap_t *lc;          login_cap_t *lc;
         int pwd_gensalt(char *, int, login_cap_t *, char);          int pwd_gensalt(char *, int, login_cap_t *, char);
         void to64(char *, u_int32_t, int n);          void to64(char *, u_int32_t, int n);
Line 128 
Line 128 
                 break;                  break;
         }          }
   
         (void)fputs(crypt(string, salt), stdout);          if ((cryptstr = crypt(string, salt)) == NULL)
                   errx(1, "crypt failed");
           fputs(cryptstr, stdout);
 }  }
   
 int  int

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