minor compilers compatibility issues

This commit is contained in:
z3APA3A committed 2016-09-04 15:11:15 +03:00
1 parent 4e96a66093
commit 880255093a
2 files changed
+6 -4

No files matched your search

+3 -1
View File
@@ -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] = '[';
+3 -3
View File
@@ -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];
};