projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e35bd4f
)
changed index() calls to strchr()
author
ewt
<devnull@localhost>
Wed, 25 Sep 1996 19:17:03 +0000
(19:17 +0000)
committer
ewt
<devnull@localhost>
Wed, 25 Sep 1996 19:17:03 +0000
(19:17 +0000)
CVS patchset: 1056
CVS date: 1996/09/25 19:17:03
build/build.c
patch
|
blob
|
history
diff --git
a/build/build.c
b/build/build.c
index
611d5c1
..
9daca7a
100644
(file)
--- 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");