git.annexia.org
/
miniexpect.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb0eedd
)
int -> const int
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 26 Jul 2016 10:18:33 +0000
(11:18 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 26 Jul 2016 10:18:33 +0000
(11:18 +0100)
miniexpect.c
patch
|
blob
|
history
diff --git
a/miniexpect.c
b/miniexpect.c
index
caf498d
..
d5a7c6e
100644
(file)
--- a/
miniexpect.c
+++ b/
miniexpect.c
@@
-345,7
+345,7
@@
mexp_expect (mexp_h *h, const mexp_regexp *regexps, int *ovector, int ovecsize)
assert (h->buffer != NULL);
for (i = 0; regexps[i].r > 0; ++i) {
- int options = regexps[i].options | PCRE_PARTIAL_SOFT;
+
const
int options = regexps[i].options | PCRE_PARTIAL_SOFT;
r = pcre_exec (regexps[i].re, regexps[i].extra,
h->buffer, (int)h->len, 0,