diff options
author | Lucien Van Elsen <lwvanels@mit.edu> | 1991-12-04 08:47:30 +0000 |
---|---|---|
committer | Lucien Van Elsen <lwvanels@mit.edu> | 1991-12-04 08:47:30 +0000 |
commit | dbafcd968ad1363f78dfde195848ca8e5e2089ad (patch) | |
tree | 0f1ccb105d27aa1539043989d399b3f11f9d081b /lib/ZFmtList.c | |
parent | be4b0ac80fccc296b4b15dedaa21be21e222c87f (diff) |
Minor ANSI C fixes- (typecasts and nothing after #endif)
Diffstat (limited to 'lib/ZFmtList.c')
-rw-r--r-- | lib/ZFmtList.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |