(index, rindex): Obsolete BSDisms; remove. Use standard strchr() and
strrchr() instead. (setbuffer): Obsolete BSDism, unused; remove.
This commit is contained in:
parent
4ae9c417b3
commit
64afd7747b
16 changed files with 29 additions and 227 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue