mirror of
https://github.com/3proxy/3proxy.git
synced 2026-05-13 13:57:26 +00:00
minor compilers compatibility issues
This commit is contained in:
parent
4e96a66093
commit
880255093a
2 changed files with 6 additions and 4 deletions
|
|
@ -61,14 +61,16 @@ static void pr_ip(struct node *node, CBFUNC cbf, void*cb){
|
|||
if(node->value)(*cbf)(cb, buf, myinet_ntop(AF_INET, node -> value, buf, 4));
|
||||
}
|
||||
|
||||
#ifndef NOIPV6
|
||||
static void pr_ip6(struct node *node, CBFUNC cbf, void*cb){
|
||||
char buf[64];
|
||||
if(node->value)(*cbf)(cb, buf, myinet_ntop(AF_INET6, node -> value, buf, 16));
|
||||
}
|
||||
#endif
|
||||
|
||||
static void pr_sa(struct node *node, CBFUNC cbf, void*cb){
|
||||
#ifdef NOIPV6
|
||||
if(node->value)return pr_ip(node, cbf, cb);
|
||||
if(node->value)pr_ip(node, cbf, cb);
|
||||
#else
|
||||
char buf[64];
|
||||
buf[0] = '[';
|
||||
|
|
|
|||
|
|
@ -25,20 +25,20 @@ struct flap_header {
|
|||
unsigned char chan;
|
||||
unsigned short seq;
|
||||
unsigned short size;
|
||||
char data[0];
|
||||
char data[1];
|
||||
};
|
||||
|
||||
struct snack_header {
|
||||
unsigned family;
|
||||
unsigned short flags;
|
||||
unsigned id;
|
||||
char data[0];
|
||||
char data[1];
|
||||
};
|
||||
|
||||
struct tlv_header {
|
||||
unsigned short type;
|
||||
unsigned short size;
|
||||
char data[0];
|
||||
char data[1];
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue