Use uint32_t instead of long int for connection options.
Options should have a fixed width anyway, but this also fixes a possible MinGW compiler bug where %lx tries to print a 64 bit value, even though a long int is only 32 bits.
This commit is contained in:
parent
468f393c4f
commit
5cbddc68ba
8 changed files with 12 additions and 12 deletions
|
|
@ -39,7 +39,7 @@ typedef struct node_status_t {
|
|||
|
||||
typedef struct node_t {
|
||||
char *name; /* name of this node */
|
||||
long int options; /* options turned on for this node */
|
||||
uint32_t options; /* options turned on for this node */
|
||||
|
||||
sockaddr_t address; /* his real (internet) ip to send UDP packets to */
|
||||
char *hostname; /* the hostname of its real ip */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue