]> Zhao Yanbai Git Server - minix.git/commitdiff
inet: resolve some compile and runtime warnings 71/3071/1
authorDavid van Moolenbroek <david@minix3.org>
Tue, 1 Sep 2015 16:20:18 +0000 (16:20 +0000)
committerDavid van Moolenbroek <david@minix3.org>
Tue, 1 Sep 2015 16:21:20 +0000 (16:21 +0000)
- 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
minix/net/inet/generic/eth.c
minix/net/inet/generic/ip.c
minix/net/inet/generic/udp.c

index 51cad01452882d7a5b7d6606e72cf6fdfe6af598..fa51929dbf3ebe3182779d8765fc62665bc4c12c 100644 (file)
@@ -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));
        }
 }
index 685b7ee88c110d34c4e95d576e076a42789e6ad2..4b8e228a2bff7f726a5c14efd4d7355463663d1e 100644 (file)
@@ -680,7 +680,7 @@ unsigned operations;
        }
        if (operations & SR_SELECT_EXCEPTION)
        {
-               printf("eth_select: not implemented for exceptions\n");
+               /* Nothing */
        }
        return resops;
 }
index 57b93c9f229870fc2bda917a693693cb02041ba4..c41fef004352c55b06edede41e9f83cd2f81dfde 100644 (file)
@@ -206,7 +206,7 @@ unsigned operations;
        }
        if (operations & SR_SELECT_EXCEPTION)
        {
-               printf("ip_select: not implemented for exceptions\n");
+               /* Nothing */
        }
        return resops;
 }
index 9dfc607851a23d95580c2afc256afb9b54902655..fe41fb8e8534a4f51bf40b2a0a493581ade9bd4f 100644 (file)
@@ -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;
 }