diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-05-04 11:08:38 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-05-04 11:08:38 +0200 |
commit | f54a1f4d43a8bf065cb7114e0c1ee6fc547670b5 (patch) | |
tree | be190a648ef935c4c02b1a34a606c813c25e1c38 /sgsnemu/ippool.h | |
parent | 5d064ecb84a3be86bd917e00703abe9efe1529b8 (diff) |
Fix various compiler warnings throughout the code
Mostly signed/unsigned and typecasting issues
Taken from http://sourceforge.net/tracker/index.php?func=detail&aid=1811517&group_id=68956&atid=522957
Diffstat (limited to 'sgsnemu/ippool.h')
-rw-r--r-- | sgsnemu/ippool.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sgsnemu/ippool.h b/sgsnemu/ippool.h index fe9f90c..02691a6 100644 --- a/sgsnemu/ippool.h +++ b/sgsnemu/ippool.h @@ -37,13 +37,13 @@ struct ippoolm_t; /* Forward declaration */ struct ippool_t { - int listsize; /* Total number of addresses */ + unsigned int listsize; /* Total number of addresses */ int allowdyn; /* Allow dynamic IP address allocation */ int allowstat; /* Allow static IP address allocation */ struct in_addr stataddr; /* Static address range network address */ struct in_addr statmask; /* Static address range network mask */ struct ippoolm_t *member; /* Listsize array of members */ - int hashsize; /* Size of hash table */ + unsigned int hashsize; /* Size of hash table */ int hashlog; /* Log2 size of hash table */ int hashmask; /* Bitmask for calculating hash */ struct ippoolm_t **hash; /* Hashsize array of pointer to member */ |