fix clearenv() on mac os x
[project/uhttpd.git] / utils.h
diff --git a/utils.h b/utils.h
index 4f74f5c..0853943 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -42,7 +42,7 @@
 static inline void clearenv(void)
 {
        extern char **environ;
-       environ = NULL;
+       *environ = NULL;
 }
 #endif
 
@@ -55,4 +55,7 @@ static inline void clearenv(void)
 int uh_urldecode(char *buf, int blen, const char *src, int slen);
 int uh_urlencode(char *buf, int blen, const char *src, int slen);
 int uh_b64decode(char *buf, int blen, const unsigned char *src, int slen);
+bool uh_path_match(const char *prefix, const char *url);
+char *uh_split_header(char *str);
+
 #endif