Fixed bug in stracesecmp left from a previous patch.
Also, a minor issue resolved in proc.h.
This commit is contained in:
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user