diff options
author | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-10-30 02:56:34 +0100 |
---|---|---|
committer | Ralf Corsépius <corsepiu@fedoraproject.org> | 2007-10-30 02:56:34 +0100 |
commit | d2384456f71b47793d8f7fd67211f74a4b5b4269 (patch) | |
tree | 23c1cc8e9b462dbe28b8b22ec2354d609bfe8b23 /rpmio/url.c | |
parent | 7208dc82beb8e9668bd980d5104eb0a7aa11fdbc (diff) | |
download | librpm-tizen-d2384456f71b47793d8f7fd67211f74a4b5b4269.tar.gz librpm-tizen-d2384456f71b47793d8f7fd67211f74a4b5b4269.tar.bz2 librpm-tizen-d2384456f71b47793d8f7fd67211f74a4b5b4269.zip |
Add URLMAGIC, URLSANE.
Remove URLDBG (unused).
Include <assert.h>.
Diffstat (limited to 'rpmio/url.c')
-rw-r--r-- | rpmio/url.c | 6 |
1 files 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 <assert.h> #include <netinet/in.h> #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; |