Replaced calls to the custom strindex() and strrindex() functions with the

exactly equivalent and standard strchr() and strrchr() functions instead.
This commit is contained in:
dtrg
2006-07-23 20:01:02 +00:00
parent babe9eafad
commit 014be56fb0
40 changed files with 112 additions and 116 deletions

View File

@@ -12,12 +12,12 @@ sys_lock(path)
{
char buf[1024];
char *tmpf = ".lockXXXXXX";
char *strrindex(), *strcpy(), *mktemp();
char *strrchr(), *strcpy(), *mktemp();
char *p;
int ok, fd;
strcpy(buf, path);
if (p = strrindex(buf, '/')) {
if (p = strrchr(buf, '/')) {
++p;
strcpy(p, tmpf);
}