Add URLMAGIC, URLSANE.
Remove URLDBG (unused). Include <assert.h>.
This commit is contained in:
parent
7208dc82be
commit
d2384456f7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue