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);
while(!feof(in)) {
for(i=2;;i++) {
- buf = realloc(buf, i*LINESIZE);
+ buf = (char *) realloc(buf, i*LINESIZE);
if(i==2)
strcpy(buf, line);
fgets(line, LINESIZE, in);