diff options
author | Alan Somers <asomers@FreeBSD.org> | 2018-02-21 21:13:08 +0000 |
---|---|---|
committer | Alan Somers <asomers@FreeBSD.org> | 2018-02-21 21:13:08 +0000 |
commit | 79a1d19516c66c8f56cdc2803087e70585d26f67 (patch) | |
tree | 213eab01deb3c1f8673e6ac9987452dcd9d1a923 /sbin/dhclient/tables.c | |
parent | ce0d4434ae11ee063215462052b09c6b85a4e1f9 (diff) | |
download | src-79a1d19516c66c8f56cdc2803087e70585d26f67.tar.gz src-79a1d19516c66c8f56cdc2803087e70585d26f67.zip |
dhclient: raise WARNS to 4
Mostly const-correctness fixes. There were also some variable-shadowing,
unused variable, and a couple of sockaddr type-correctness changes. I also had
trouble with cast-align warnings. I was able to prove that one of them was a
false positive. But ultimately I had to disable the warning program-wide to
deal with the others.
Reviewed by: cem
MFC after: 3 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D14460
Notes
Notes:
svn path=/head/; revision=329754
Diffstat (limited to 'sbin/dhclient/tables.c')
-rw-r--r-- | sbin/dhclient/tables.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/dhclient/tables.c b/sbin/dhclient/tables.c index 8fd2199da6a2..8f3bf23dfcd0 100644 --- a/sbin/dhclient/tables.c +++ b/sbin/dhclient/tables.c @@ -440,11 +440,11 @@ initialize_universes(void) for (i = 0; i < 256; i++) { dhcp_universe.options[i] = &dhcp_options[i]; add_hash(dhcp_universe.hash, - (unsigned char *)dhcp_options[i].name, 0, + (const unsigned char *)dhcp_options[i].name, 0, (unsigned char *)&dhcp_options[i]); } universe_hash.hash_count = DEFAULT_HASH_SIZE; add_hash(&universe_hash, - (unsigned char *)dhcp_universe.name, 0, + (const unsigned char *)dhcp_universe.name, 0, (unsigned char *)&dhcp_universe); } |