X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=lib%2Furl%2Furl.c;h=6eeced32538350cb0aea0fa3edbe1a9c73aab411;hp=8a3d0db50ee6c38e5f39d8e2eb0ffe8e31928288;hb=e3f78333a2a16760d6a497b84329c103208e921e;hpb=8ad9aba4b4463c9231eb441c81694686443b011a diff --git a/lib/url/url.c b/lib/url/url.c index 8a3d0db..6eeced3 100644 --- a/lib/url/url.c +++ b/lib/url/url.c @@ -20,9 +20,7 @@ #include "config.h" #endif -#define _GNU_SOURCE #include -#include #include #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; } @@ -248,7 +246,7 @@ static void pb_url_update_full(struct pb_url *url) url->full = pb_url_to_string(url); } -static struct pb_url *pb_url_copy(void *ctx, const struct pb_url *url) +struct pb_url *pb_url_copy(void *ctx, const struct pb_url *url) { struct pb_url *new_url;