From 49aa0214d72eb609845e292772819de414034c55 Mon Sep 17 00:00:00 2001 From: Jaakko Heinonen Date: Thu, 16 Aug 2001 12:24:32 +0000 Subject: [PATCH] Minor cast fixes --- filter.c | 4 ++-- misc.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/filter.c b/filter.c index c681af6..a439939 100644 --- a/filter.c +++ b/filter.c @@ -134,7 +134,7 @@ get_real_name() pwent = getpwnam(username); - if( (tmp = malloc(strlen(pwent->pw_gecos) +1)) == NULL) + if( (tmp = (char *)malloc(strlen(pwent->pw_gecos) +1)) == NULL) return strdup(username); rtn = sscanf(pwent->pw_gecos, "%[^,]", tmp); @@ -647,7 +647,7 @@ mutt_read_line(FILE *in, char **alias, char **rest) while( ! ISSPACE(*ptr) ) ptr++; - if( (*alias = malloc(ptr-tmp+1)) == NULL) + if( (*alias = (char *)malloc(ptr-tmp+1)) == NULL) return 1; strncpy(*alias, tmp, ptr-tmp); diff --git a/misc.c b/misc.c index 1213dd5..225d156 100644 --- a/misc.c +++ b/misc.c @@ -232,7 +232,7 @@ getaline(FILE *f) len = 0; size = thres; - buf = abook_malloc(size); + buf = (char *)abook_malloc(size); while (fgets(buf+len, size-len, f) != NULL) { len += strlen(buf+len); -- 2.39.2