aboutsummaryrefslogtreecommitdiffstats
path: root/regexp/jimregexp.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2020-02-12 03:09:17 +0000
committerNIIBE Yutaka <[email protected]>2020-02-12 03:09:17 +0000
commitdb38b551ba61d2f1184a3fbb4673c141d9aabff0 (patch)
tree9d8b395fb64f41ef313e2b2c05254428db916cba /regexp/jimregexp.c
parentregexp: Use regexp/libregexp.a by gpg frontend. (diff)
downloadgnupg-db38b551ba61d2f1184a3fbb4673c141d9aabff0.tar.gz
gnupg-db38b551ba61d2f1184a3fbb4673c141d9aabff0.zip
regexp: A little fix for jimregexp.c.
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'regexp/jimregexp.c')
-rw-r--r--regexp/jimregexp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/regexp/jimregexp.c b/regexp/jimregexp.c
index 4fdced199..2ea3a7d13 100644
--- a/regexp/jimregexp.c
+++ b/regexp/jimregexp.c
@@ -61,6 +61,8 @@
#include "jimregexp.h"
#include "utf8.h"
+#define UCHAR(c) ((unsigned char)(c))
+
/* An arbitrary limit, but this seems enough. Must be less than 1000. */
#define REG_MAX_PAREN 100
@@ -1878,6 +1880,8 @@ size_t regerror(int errcode, const regex_t *preg, char *errbuf, size_t errbuf_s
};
const char *err;
+ (void)preg;
+
if (errcode < 0 || errcode >= REG_ERR_NUM) {
err = "Bad error code";
}