Fixed bug in stracesecmp left from a previous patch.

Also, a minor issue resolved in proc.h.
This commit is contained in:
Sergey
2014-05-07 22:33:45 -07:00
parent bca48c9a66
commit b238afb5b9
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -67,5 +67,5 @@ strncasecmp(s1, s2, n)
while (n-- > 0 && cm[(unsigned char)*s1] == cm[(unsigned char)*s2++])
if (*s1++ == '\0')
return(0);
return(n == 0 ? 0 : cm[(unsigned char)*s1] - cm[(unsigned char)*--s2]);
return(n == -1 ? 0 : cm[(unsigned char)*s1] - cm[(unsigned char)*--s2]);
}
+1 -1
View File
@@ -97,7 +97,7 @@ struct proc *pidhash [PIDHSZ];
extern struct proc proc[]; /* the proc table itself */
struct proc *freeproc, *zombproc, *allproc, *qs;
/* lists of procs in various states */
int nproc;
extern int nproc;
/*
* Init the process queues.