Mark more pointer arguments as never being null.

This commit is contained in:
Nicholas J. Kain
2015-02-14 01:46:02 -05:00
parent 0535b36534
commit 00c9479c4c
2 changed files with 5 additions and 4 deletions

View File

@ -343,7 +343,7 @@ void stop_dhcp_listen(struct client_state_t cs[static 1])
static int validate_dhcp_packet(struct client_state_t cs[static 1],
size_t len, struct dhcpmsg packet[static 1],
uint8_t *msgtype)
uint8_t msgtype[static 1])
{
if (len < offsetof(struct dhcpmsg, options)) {
log_warning("%s: Packet is too short to contain magic cookie. Ignoring.",