From 30b294c491b4577d5f0e5c94f17cf9e36a8ecb72 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 24 Feb 2015 12:04:22 +0100 Subject: lib/strutils: extend parse_switch() to accept more options * allow to specify more 0|1 pairs * allow to specify error message Signed-off-by: Karel Zak --- include/strutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/strutils.h') diff --git a/include/strutils.h b/include/strutils.h index ee8c7cbda..847a4219f 100644 --- a/include/strutils.h +++ b/include/strutils.h @@ -36,7 +36,7 @@ extern void strtotimeval_or_err(const char *str, struct timeval *tv, extern int isdigit_string(const char *str); -extern int parse_switch(const char *arg, const char *a, const char *b); +extern int parse_switch(const char *arg, const char *errmesg, ...); #ifndef HAVE_MEMPCPY extern void *mempcpy(void *restrict dest, const void *restrict src, size_t n); -- cgit v1.2.3-55-g7522