git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/libnet - Fix compile errors (silly me)
[tpg/acess2.git]
/
Usermode
/
Libraries
/
libnet.so_src
/
hostnames.c
diff --git
a/Usermode/Libraries/libnet.so_src/hostnames.c
b/Usermode/Libraries/libnet.so_src/hostnames.c
index
c3c9626
..
99aa328
100644
(file)
--- a/
Usermode/Libraries/libnet.so_src/hostnames.c
+++ b/
Usermode/Libraries/libnet.so_src/hostnames.c
@@
-43,7
+43,7
@@
struct sDNSCallbackInfo
// === PROTOTYPES ===
int int_lookupany_callback(void *info_v, int AddrType, const void *Addr);
// === PROTOTYPES ===
int int_lookupany_callback(void *info_v, int AddrType, const void *Addr);
-
void
int_DNS_callback(void *info, const char *name, enum eTypes type, enum eClass class, unsigned int ttl, size_t rdlength, const void *rdata);
+
int
int_DNS_callback(void *info, const char *name, enum eTypes type, enum eClass class, unsigned int ttl, size_t rdlength, const void *rdata);
// === GLOBALS ===
int giNumDNSServers;
// === GLOBALS ===
int giNumDNSServers;
@@
-127,22
+127,22
@@
int Net_Lookup_Addrs(const char *Name, void *cb_info, tNet_LookupAddrs_Callback
return 1;
}
return 1;
}
-
void
int_DNS_callback(void *info_v, const char *name, enum eTypes type, enum eClass class, unsigned int ttl, size_t rdlength, const void *rdata)
+
int
int_DNS_callback(void *info_v, const char *name, enum eTypes type, enum eClass class, unsigned int ttl, size_t rdlength, const void *rdata)
{
struct sDNSCallbackInfo *info = info_v;
_SysDebug("int_DNS_callback(name='%s', type=%i, class=%i)", name, type, class);
// Check type matches (if pattern was provided)
if( info->desired_type != QTYPE_STAR && type != info->desired_type )
{
struct sDNSCallbackInfo *info = info_v;
_SysDebug("int_DNS_callback(name='%s', type=%i, class=%i)", name, type, class);
// Check type matches (if pattern was provided)
if( info->desired_type != QTYPE_STAR && type != info->desired_type )
- return ;
+ return
0
;
if( info->desired_class != QCLASS_STAR && class != info->desired_class )
if( info->desired_class != QCLASS_STAR && class != info->desired_class )
- return ;
+ return
0
;
switch( type )
{
case TYPE_A:
if( rdlength != 4 )
switch( type )
{
case TYPE_A:
if( rdlength != 4 )
- return ;
+ return
0
;
info->callback( info->cb_info, 4, rdata );
break;
//case TYPE_AAAA:
info->callback( info->cb_info, 4, rdata );
break;
//case TYPE_AAAA:
@@
-155,6
+155,7
@@
void int_DNS_callback(void *info_v, const char *name, enum eTypes type, enum eCl
break;
}
info->got_value = true;
break;
}
info->got_value = true;
+ return 0;
}
int Net_Lookup_Name(int AddrType, const void *Addr, char *Dest[256])
}
int Net_Lookup_Name(int AddrType, const void *Addr, char *Dest[256])
UCC
git Repository :: git.ucc.asn.au