Add URLMAGIC, URLSANE.

Remove URLDBG (unused).
Include <assert.h>.
This commit is contained in:
Ralf Corsépius 2007-10-30 02:56:34 +01:00
parent 7208dc82be
commit d2384456f7
1 changed files with 4 additions and 2 deletions

View File

@ -4,6 +4,7 @@
#include "system.h" #include "system.h"
#include <assert.h>
#include <netinet/in.h> #include <netinet/in.h>
#include "rpmmacro.h" #include "rpmmacro.h"
@ -26,12 +27,13 @@
#define IPPORT_PGPKEYSERVER 11371 #define IPPORT_PGPKEYSERVER 11371
#endif #endif
#define URLMAGIC 0xd00b1ed0
#define URLSANE(u) assert(u && u->magic == URLMAGIC)
/** /**
*/ */
int _url_debug = 0; int _url_debug = 0;
#define URLDBG(_f, _m, _x) if ((_url_debug | (_f)) & (_m)) fprintf _x
urlinfo urlNew() urlinfo urlNew()
{ {
urlinfo u; urlinfo u;