diff options
author | John Kohl <jtkohl@mit.edu> | 1987-03-19 09:09:22 +0000 |
---|---|---|
committer | John Kohl <jtkohl@mit.edu> | 1987-03-19 09:09:22 +0000 |
commit | b0bd364c739e3d8f1f81cb9266cfd6d5e27d7f4e (patch) | |
tree | 48dbbbcb5166afa5f2de0e4352c24f5bdb2eabd0 /server/common.c | |
parent | 6dcaf2ad4b1ef15c76f7f880326ef09fdc54aea9 (diff) |
don't refer to nonexistent error() routine
Diffstat (limited to 'server/common.c')
-rw-r--r-- | server/common.c | 27 |
1 files changed, 17 insertions, 10 deletions
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 <zephyr/mit-copyright.h> + #ifndef lint -static char *rcsid_common_c = "$Header$"; +static char rcsid_common_c[] = "$Header$"; #endif lint -/* common routines */ - -#include <zephyr/mit-copyright.h> #include <stdio.h> +/* 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); } |