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);
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);
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);