diff options
author | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-27 23:50:20 +0800 |
---|---|---|
committer | in2 <in2@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2002-04-27 23:50:20 +0800 |
commit | 1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95 (patch) | |
tree | 95c9fbe94ccd9f50a0f09732b577ff455149dd66 /mbbsd/descrypt.c | |
parent | f793f25ce60f90f2413546a170203bcc5403e77e (diff) | |
download | pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.gz pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.bz2 pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.lz pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.xz pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.tar.zst pttbbs-1cfd2ba12337bbad41d8e1c1bb5b828d7ef9bc95.zip |
for mbbsd.icc
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@128 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd/descrypt.c')
-rw-r--r-- | mbbsd/descrypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mbbsd/descrypt.c b/mbbsd/descrypt.c index 3bb0a5e5..1d246670 100644 --- a/mbbsd/descrypt.c +++ b/mbbsd/descrypt.c @@ -1,4 +1,4 @@ -/* $Id: descrypt.c,v 1.1 2002/03/07 15:13:48 in2 Exp $ */ +/* $Id: descrypt.c,v 1.2 2002/04/27 15:50:17 in2 Exp $ */ /* * FreeSec: libcrypt for NetBSD @@ -560,7 +560,7 @@ char *crypt(char *key, char *setting) { if((*q++ = *key << 1)) key++; } - if(des_setkey((unsigned char *)keybuf)) + if(des_setkey((char *)keybuf)) return NULL; /* @@ -611,6 +611,6 @@ char *crypt(char *key, char *setting) { *p++ = ascii64[l & 0x3f]; *p = 0; - return output; + return (char *)output; } #endif |