diff --git a/rpmio/url.c b/rpmio/url.c index 34ce7ab5b..3c1a84c3b 100644 --- a/rpmio/url.c +++ b/rpmio/url.c @@ -4,6 +4,7 @@ #include "system.h" +#include #include #include "rpmmacro.h" @@ -26,12 +27,13 @@ #define IPPORT_PGPKEYSERVER 11371 #endif +#define URLMAGIC 0xd00b1ed0 +#define URLSANE(u) assert(u && u->magic == URLMAGIC) + /** */ int _url_debug = 0; -#define URLDBG(_f, _m, _x) if ((_url_debug | (_f)) & (_m)) fprintf _x - urlinfo urlNew() { urlinfo u;