From d2384456f71b47793d8f7fd67211f74a4b5b4269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ralf=20Cors=C3=A9pius?= Date: Tue, 30 Oct 2007 02:56:34 +0100 Subject: [PATCH] Add URLMAGIC, URLSANE. Remove URLDBG (unused). Include . --- rpmio/url.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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;