From: Jaakko Heinonen Date: Thu, 16 Aug 2001 12:24:32 +0000 (+0000) Subject: Minor cast fixes X-Git-Tag: upstream/0.6.1~2^2~349 X-Git-Url: https://git.deb.at/w?a=commitdiff_plain;h=49aa0214d72eb609845e292772819de414034c55;p=pkg%2Fabook.git Minor cast fixes --- 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);