From 1d9856e71383f6a4ad7a5e7d19e19ff98e0ea22a Mon Sep 17 00:00:00 2001 From: David van Moolenbroek Date: Tue, 1 Sep 2015 16:20:18 +0000 Subject: [PATCH] inet: resolve some compile and runtime warnings - ping(1) triggers warnings about unimplemented exceptions for select; even if there could be a useful implementation (which is doubtful), the warnings are not helping anyone right now; - the clock_t data type has changed. Change-Id: Ie5b1383e7657e8501f63bb4b9d255c6502567a15 --- minix/net/inet/clock.c | 2 +- minix/net/inet/generic/eth.c | 2 +- minix/net/inet/generic/ip.c | 2 +- minix/net/inet/generic/udp.c | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/minix/net/inet/clock.c b/minix/net/inet/clock.c index 51cad0145..fa51929db 100644 --- a/minix/net/inet/clock.c +++ b/minix/net/inet/clock.c @@ -54,7 +54,7 @@ clock_t tim; } else if (!curr_time) { - DBLOCK(0x20, printf("set_time: new time %u < prev_time %u\n", + DBLOCK(0x20, printf("set_time: new time %lu < prev_time %lu\n", tim, prev_time)); } } diff --git a/minix/net/inet/generic/eth.c b/minix/net/inet/generic/eth.c index 685b7ee88..4b8e228a2 100644 --- a/minix/net/inet/generic/eth.c +++ b/minix/net/inet/generic/eth.c @@ -680,7 +680,7 @@ unsigned operations; } if (operations & SR_SELECT_EXCEPTION) { - printf("eth_select: not implemented for exceptions\n"); + /* Nothing */ } return resops; } diff --git a/minix/net/inet/generic/ip.c b/minix/net/inet/generic/ip.c index 57b93c9f2..c41fef004 100644 --- a/minix/net/inet/generic/ip.c +++ b/minix/net/inet/generic/ip.c @@ -206,7 +206,7 @@ unsigned operations; } if (operations & SR_SELECT_EXCEPTION) { - printf("ip_select: not implemented for exceptions\n"); + /* Nothing */ } return resops; } diff --git a/minix/net/inet/generic/udp.c b/minix/net/inet/generic/udp.c index 9dfc60785..fe41fb8e8 100644 --- a/minix/net/inet/generic/udp.c +++ b/minix/net/inet/generic/udp.c @@ -316,12 +316,10 @@ unsigned operations; /* Should handle special case when the interface is down */ resops |= SR_SELECT_WRITE; } -#if DEBUG == 1 if (operations & SR_SELECT_EXCEPTION) { - printf("udp_select: not implemented for exceptions\n"); + /* Nothing */ } -#endif return resops; }