From dbafcd968ad1363f78dfde195848ca8e5e2089ad Mon Sep 17 00:00:00 2001 From: Lucien Van Elsen Date: Wed, 4 Dec 1991 08:47:30 +0000 Subject: Minor ANSI C fixes- (typecasts and nothing after #endif) --- lib/ZFmtList.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/ZFmtList.c') diff --git a/lib/ZFmtList.c b/lib/ZFmtList.c index 95e5e52..53aa356 100644 --- a/lib/ZFmtList.c +++ b/lib/ZFmtList.c @@ -45,7 +45,7 @@ Code_t ZFormatNoticeList(notice, list, nitems, buffer, ret_len, *ret_len = hdrlen+size; /* *ret_len can never be zero here, no need to worry about malloc(0). */ - if (!(*buffer = malloc((unsigned)*ret_len))) + if (!(*buffer = (char *) malloc((unsigned)*ret_len))) return (ENOMEM); bcopy(header, *buffer, hdrlen); -- cgit v1.2.3