From b0bd364c739e3d8f1f81cb9266cfd6d5e27d7f4e Mon Sep 17 00:00:00 2001 From: John Kohl Date: Thu, 19 Mar 1987 09:09:22 +0000 Subject: don't refer to nonexistent error() routine --- server/common.c | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'server/common.c') diff --git a/server/common.c b/server/common.c index 2a99cf6..a42ecfe 100644 --- a/server/common.c +++ b/server/common.c @@ -1,26 +1,33 @@ -/* +/* This file is part of the Project Athena Zephyr Notification System. + * It contains functions for general use within the Zephyr server. + * + * Created by: John T. Kohl + * * $Source$ - * $Header$ + * $Author$ + * + * Copyright (c) 1987 by the Massachusetts Institute of Technology. + * For copying and distribution information, see the file + * "mit-copyright.h". */ +#include + #ifndef lint -static char *rcsid_common_c = "$Header$"; +static char rcsid_common_c[] = "$Header$"; #endif lint -/* common routines */ - -#include #include +/* common routines for the server */ + char * strsave(sp) char *sp; { register char *ret; - if((ret = (char *) malloc(strlen(sp)+1)) == NULL) { - error("out of memory in strsave()\n"); - return(NULL); - } + if((ret = (char *) malloc(strlen(sp)+1)) == NULL) + return(NULL); strcpy(ret,sp); return(ret); } -- cgit v1.2.3