(index, rindex): Obsolete BSDisms; remove. Use standard strchr() and

strrchr() instead.
(setbuffer): Obsolete BSDism, unused; remove.
This commit is contained in:
Markus Armbruster 2004-01-08 18:15:13 +00:00
parent 4ae9c417b3
commit 64afd7747b
16 changed files with 29 additions and 227 deletions

View file

@ -37,6 +37,7 @@
#include <ctype.h>
#include <stdio.h>
#include <string.h>
#if !defined(_WIN32)
#include <unistd.h>
#endif
@ -116,7 +117,7 @@ int kill_proc;
}
for (ptr = buf; !isspace(*ptr); ptr++) ;
ptr++;
p = index(ptr, '\n');
p = strchr(ptr, '\n');
if (p != 0)
*p = 0;
if (atoi(ptr) != CLIENTPROTO) {