From 16c212f1ed318b91dc9a6791d97dc2a7510f0511 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Wed, 1 Jul 1987 00:22:00 +0000 Subject: lint cleanup --- server/common.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'server/common.c') diff --git a/server/common.c b/server/common.c index a42ecfe..b7f9122 100644 --- a/server/common.c +++ b/server/common.c @@ -14,21 +14,30 @@ #include #ifndef lint +#ifndef SABER static char rcsid_common_c[] = "$Header$"; +#endif SABER #endif lint #include +#include + +extern char *malloc(), *strcpy(); /* common routines for the server */ char * -strsave(sp) char *sp; +strsave(sp) +char *sp; { register char *ret; - if((ret = (char *) malloc(strlen(sp)+1)) == NULL) - return(NULL); - strcpy(ret,sp); + if((ret = malloc((unsigned) strlen(sp)+1)) == NULL) { + syslog(LOG_ERR, "no mem strsave'ing"); + abort(); + } + (void) strcpy(ret,sp); return(ret); } +/* some sort of syslog interface */ -- cgit v1.2.3