summaryrefslogtreecommitdiffstats
path: root/bstr.h
diff options
context:
space:
mode:
Diffstat (limited to 'bstr.h')
-rw-r--r--bstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bstr.h b/bstr.h
index 5f04a75db8..f6ce407a80 100644
--- a/bstr.h
+++ b/bstr.h
@@ -152,7 +152,7 @@ static inline int bstr_find0(struct bstr haystack, const char *needle)
return bstr_find(haystack, bstr0(needle));
}
-static inline int bstr_eatstart0(struct bstr *s, char *prefix)
+static inline int bstr_eatstart0(struct bstr *s, const char *prefix)
{
return bstr_eatstart(s, bstr0(prefix));
}