(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
|
@ -100,7 +100,7 @@ s_char *buf;
|
|||
}
|
||||
size -= n;
|
||||
ptr[n] = '\0';
|
||||
} while ((p = index(ptr, '\n')) == 0);
|
||||
} while ((p = strchr(ptr, '\n')) == 0);
|
||||
newline = 1 + p - buf;
|
||||
*p = 0;
|
||||
} else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue