2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Fix a number of warnings (and a few real bugs) found by enabling

gcc warnings.

See RT ticket #17013 for more.
This commit is contained in:
Shane Kerr
2007-08-22 13:41:37 +00:00
parent af00522b3e
commit 06eb8bab55
21 changed files with 165 additions and 169 deletions

View File

@@ -1007,6 +1007,12 @@ lease_to_client(struct data_string *reply_ret,
ia_na = NULL;
lease = NULL;
/*
* Silence compiler warnings.
*/
valid_lifetime = 0;
preferred_lifetime = 0;
/*
* Set up reply.
*/
@@ -2175,7 +2181,7 @@ iterate_over_ia_na(struct data_string *reply_ret,
struct packet *packet,
const struct data_string *client_id,
const struct data_string *server_id,
char *packet_type,
const char *packet_type,
void (*ia_na_match)(),
void (*ia_na_nomatch)()) {
struct option_state *opt_state;