Fixing ptr==int comparisons to satify linux compilers

git-svn-id: svn://10.0.0.236/trunk@19934 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dp%netscape.com
1999-02-06 20:53:42 +00:00
parent ae5ca54d8e
commit b27aa3660d
2 changed files with 4 additions and 4 deletions

View File

@@ -710,7 +710,7 @@ nsresult nsRepository::SyncComponentsInPathList(const char *pathlist)
{
char *paths = PL_strdup(pathlist);
if (paths == NULL || *paths == NULL)
if (paths == NULL || *paths == '\0')
return(NS_ERROR_FAILURE);
char *pathsMem = paths;
@@ -735,7 +735,7 @@ nsresult nsRepository::SyncComponentsInDir(const char *dir)
// the filename each time in the loop
char fullname[NS_MAX_FILENAME_LEN];
PL_strncpyz(fullname, dir, sizeof(fullname));
int n = strlen(fullname);
unsigned int n = strlen(fullname);
if (n+1 < sizeof(fullname))
{
fullname[n] = PR_GetDirectorySeparator();