dhcp: Don't use signed char for DHCP options

The value of DHCP_OPTEND is 255.  When it is assigned this result in a
sign change as the positive int constant is cast to a signed char and -1
results. Clang 4.0 complains about this.
This commit is contained in:
Tobias Brunner 2017-09-14 19:11:10 +02:00
parent d04deff4df
commit 787cc3a4e5
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ typedef struct __attribute__((packed)) {
char server_hostname[64];
char boot_filename[128];
uint32_t magic_cookie;
char options[252];
u_char options[252];
} dhcp_t;
/**