aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-09-14 12:43:28 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-09-14 12:43:28 -0700
commit018f2b06ce2e2a44ee6c1379f94db38aaec73d6c (patch)
treeb7f77a04f2cde33b0f9815f9267cfc66b78c3976
parent99404cb4809158ecf1c9b02288b1c886891baab3 (diff)
Fixing compiler warnings
-rw-r--r--compiler.c2
-rw-r--r--vm.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/compiler.c b/compiler.c
index 8279285..1c0a817 100644
--- a/compiler.c
+++ b/compiler.c
@@ -101,7 +101,7 @@ vm_op_t *bpeg_simplepattern(const char *str)
if (matchchar(&str, '.')) // "..."
op->multiline = 1;
vm_op_t *till = bpeg_simplepattern(str);
- str = str; // Don't advance str, the following pattern will be re-matched.
+ // Don't advance str, the following pattern will be re-matched.
op->op = VM_UPTO;
op->len = -1;
op->args.pat = till;
diff --git a/vm.h b/vm.h
index 6d0a1b4..ac0269f 100644
--- a/vm.h
+++ b/vm.h
@@ -6,6 +6,7 @@
#include <stdlib.h>
#include <string.h>
+#include <strings.h>
#include <sys/types.h>
#include "types.h"