diff options
author | John F. Carr <jfc@mit.edu> | 1991-06-20 10:29:34 +0000 |
---|---|---|
committer | John F. Carr <jfc@mit.edu> | 1991-06-20 10:29:34 +0000 |
commit | d05d40e06a19f489137bfeb49a75ee2d750e95d6 (patch) | |
tree | 05eda21f28d15d4f56dbc11536830676d5d4fcef /lib/ZMkAuth.c | |
parent | cabba5b3d377234981408eea3f04a85fb7b8bcde (diff) |
Add register declaration.
Diffstat (limited to 'lib/ZMkAuth.c')
-rw-r--r-- | lib/ZMkAuth.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ZMkAuth.c b/lib/ZMkAuth.c index 0b20a39..7b11a34 100644 --- a/lib/ZMkAuth.c +++ b/lib/ZMkAuth.c @@ -14,9 +14,8 @@ #ifndef lint static char rcsid_ZMakeAuthentication_c[] = "$Id$"; -#endif lint +#endif -#include <zephyr/mit-copyright.h> #include <zephyr/zephyr_internal.h> #ifdef KERBEROS #include "krb_err.h" @@ -32,7 +31,7 @@ Code_t ZResetAuthentication () { } Code_t ZMakeAuthentication(notice, buffer, buffer_len, len) - ZNotice_t *notice; + register ZNotice_t *notice; char *buffer; int buffer_len; int *len; @@ -59,6 +58,7 @@ Code_t ZMakeAuthentication(notice, buffer, buffer_len, len) notice->z_auth = 1; notice->z_authent_len = authent.length; notice->z_ascii_authent = (char *)malloc((unsigned)authent.length*3); + /* zero length authent is an error, so malloc(0) is not a problem */ if (!notice->z_ascii_authent) return (ENOMEM); if ((retval = ZMakeAscii(notice->z_ascii_authent, |