dtlogin: start to resolve static analysis warnings

Also convert some K&R function declarations to ansi
This commit is contained in:
Peter Howkins
2014-12-23 17:49:11 +00:00
parent 29294e0373
commit e54c164fe1
13 changed files with 215 additions and 317 deletions

View File

@@ -480,6 +480,8 @@ GetResource( char *name, char *class, int valueType, char **valuep,
break;
}
return 1;
}
XrmOptionDescRec configTable [] = {
@@ -863,9 +865,14 @@ char * newname;
strncpy(newname, tempName, tempLen);
strcpy(newname+tempLen, name);
free (langString);
free (tempName);
return(newname);
}
}
default:
/* special is of an unknown value */
return(NULL);
}
}