Fucking integer promotion rules and signed char
This commit is contained in:
parent
c56cf8fe47
commit
cf6137c734
1 changed files with 1 additions and 1 deletions
|
@ -39,7 +39,7 @@ int main(void) {
|
|||
}
|
||||
|
||||
for(;;) {
|
||||
char frame[1522]; // 1522 is the largest a 802.3 frame can be
|
||||
unsigned char frame[1522]; // 1522 is the largest a 802.3 frame can be
|
||||
|
||||
errno = 0;
|
||||
ssize_t frame_length = recv(packet_socket, frame, sizeof(frame), MSG_TRUNC);
|
||||
|
|
Loading…
Reference in a new issue