diff options
author | Lucien Van Elsen <lwvanels@mit.edu> | 1991-12-04 08:25:09 +0000 |
---|---|---|
committer | Lucien Van Elsen <lwvanels@mit.edu> | 1991-12-04 08:25:09 +0000 |
commit | 1bd4094341bcada53540b6f51833c30d61f1dcd6 (patch) | |
tree | 917cfd1e4ff9e34dcf7f7a7aaaa78d875bf6d0b8 /server/common.c | |
parent | fe7095d1dc0a6a79810cc2e81df3fa70370385be (diff) |
Converted back to ANSI C (with ifdef's for standard C)
Diffstat (limited to 'server/common.c')
-rw-r--r-- | server/common.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/server/common.c b/server/common.c index dc8ed92..7d74ca5 100644 --- a/server/common.c +++ b/server/common.c @@ -15,22 +15,24 @@ #ifndef lint #ifndef SABER -static const char rcsid_common_c[] = - "$Header$"; -#endif SABER -#endif lint +static char rcsid_common_c[] = + "$Id$"; +#endif /* SABER */ +#endif /* lint */ +#include <zephyr/zephyr.h> #include <stdio.h> -#include <assert.h> #include <ctype.h> -#include "zserver.h" +#include <syslog.h> +#include <string.h> +#include "unix.h" /* common routines for the server */ /* copy the string into newly allocated area */ char * -strsave (const char *sp) +strsave (Zconst char *sp) { register char *ret; @@ -45,7 +47,7 @@ strsave (const char *sp) /* generic string hash function */ unsigned long -hash (const char *string) +hash (Zconst char *string) { register unsigned long hval = 0; register char cp; |