summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorewt <devnull@localhost>1996-09-25 19:17:03 +0000
committerewt <devnull@localhost>1996-09-25 19:17:03 +0000
commitd9aea8c24422bc7eb9001c7f3eda8162d25cc2ec (patch)
tree4f719965f19fb6ad64f644f6827520c9fef1f03f
parente35bd4f4cfb71e28008257d5b1625b3255f30350 (diff)
downloadrpm-d9aea8c24422bc7eb9001c7f3eda8162d25cc2ec.tar.gz
rpm-d9aea8c24422bc7eb9001c7f3eda8162d25cc2ec.tar.bz2
rpm-d9aea8c24422bc7eb9001c7f3eda8162d25cc2ec.zip
changed index() calls to strchr()
CVS patchset: 1056 CVS date: 1996/09/25 19:17:03
-rw-r--r--build/build.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/build.c b/build/build.c
index 611d5c17c..9daca7af2 100644
--- a/build/build.c
+++ b/build/build.c
@@ -480,7 +480,7 @@ static int doPatchMacro(Spec spec, StringBuf sb, char *line)
opt_b = NULL;
patch_index = 0;
- if (! index(" \t\n", line[6])) {
+ if (! strchr(" \t\n", line[6])) {
/* %patchN */
sprintf(buf, "%%patch -P %s", line + 6);
} else {
@@ -502,7 +502,7 @@ static int doPatchMacro(Spec spec, StringBuf sb, char *line)
}
} else if (!strncmp(s, "-p", 2)) {
/* unfortunately, we must support -pX */
- if (! index(" \t\n", s[2])) {
+ if (! strchr(" \t\n", s[2])) {
s = s + 2;
} else {
s = strtok(NULL, " \t\n");