diff options
author | Vincent Sanders <vince@kyllikki.org> | 2016-04-20 23:33:31 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2016-04-20 23:33:31 +0100 |
commit | 7ba291037b1dbd0cd205ba07e6444293596a3761 (patch) | |
tree | 15f9da3418f6347aae2ea1212f5450c0ca0e5355 /utils/utils.c | |
parent | 10ef7b3f1dad2798af7c0c9e0311ea30c26bdf51 (diff) | |
download | netsurf-7ba291037b1dbd0cd205ba07e6444293596a3761.tar.gz netsurf-7ba291037b1dbd0cd205ba07e6444293596a3761.tar.bz2 |
move regex helper to be with teh single remaining call site
Diffstat (limited to 'utils/utils.c')
-rw-r--r-- | utils/utils.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/utils/utils.c b/utils/utils.c index 37839dc48..19d5bf0d6 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -28,7 +28,6 @@ #include <strings.h> #include <sys/stat.h> #include <sys/types.h> -#include <regex.h> #include <time.h> #include <errno.h> #include <curl/curl.h> @@ -217,21 +216,6 @@ nserror snstrjoin(char **str, size_t *size, char sep, size_t nelm, ...) } -/* exported interface documented in utils/utils.h */ -nserror regcomp_wrapper(regex_t *preg, const char *regex, int cflags) -{ - int r; - r = regcomp(preg, regex, cflags); - if (r) { - char errbuf[200]; - regerror(r, preg, errbuf, sizeof errbuf); - LOG("Failed to compile regexp '%s': %s\n", regex, errbuf); - return NSERROR_INIT_FAILED; - } - return NSERROR_OK; -} - - /** * The size of buffers within human_friendly_bytesize. * |