From cf6137c73468078d1b631238346ed9369212e6f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juhani=20Krekel=C3=A4?= Date: Wed, 3 Jul 2019 22:36:20 +0300 Subject: [PATCH] Fucking integer promotion rules and signed char --- ethertype-dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethertype-dump.c b/ethertype-dump.c index 0c6cd0d..b999184 100644 --- a/ethertype-dump.c +++ b/ethertype-dump.c @@ -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);