]> git.ozlabs.org Git - petitboot/blobdiff - lib/url/url.c
lib/fold: Add text fold utility
[petitboot] / lib / url / url.c
index 8a3d0db50ee6c38e5f39d8e2eb0ffe8e31928288..7202f4965414be300cd9e1c5cb0ee8ea68c3c29b 100644 (file)
@@ -20,9 +20,7 @@
 #include "config.h"
 #endif
 
-#define _GNU_SOURCE
 #include <assert.h>
-#include <stdbool.h>
 #include <string.h>
 
 #include "log/log.h"
@@ -228,7 +226,7 @@ fail:
        return NULL;
 }
 
-static bool is_url(const char *str)
+bool is_url(const char *str)
 {
        return strstr(str, "://") != NULL;
 }