]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
We don't care about the result of these functions.
authorRoy Marples <roy@marples.name>
Mon, 3 Mar 2014 15:52:02 +0000 (15:52 +0000)
committerRoy Marples <roy@marples.name>
Mon, 3 Mar 2014 15:52:02 +0000 (15:52 +0000)
dhcp.c
platform-linux.c

diff --git a/dhcp.c b/dhcp.c
index acbca2fafc45c5fc9ca91c34d3d5f76aa407f81b..c64b6ae7b72c58c1180b2fbffc1ac4540bf7e65a 100644 (file)
--- a/dhcp.c
+++ b/dhcp.c
@@ -2611,7 +2611,7 @@ dhcp_handleudp(void *arg)
 
        /* Just read what's in the UDP fd and discard it as we always read
         * from the raw fd */
-       read(ctx->udp_fd, buffer, sizeof(buffer));
+       (void)read(ctx->udp_fd, buffer, sizeof(buffer));
 }
 
 static void
@@ -2626,7 +2626,7 @@ dhcp_handleifudp(void *arg)
 
        /* Just read what's in the UDP fd and discard it as we always read
         * from the raw fd */
-       read(state->udp_fd, buffer, sizeof(buffer));
+       (void)read(state->udp_fd, buffer, sizeof(buffer));
 }
 
 static int
index 468f3fde4b1827139c3090b13762185fd5ab49af..ae44bbafb1f2243cab0c336171c933240e2b1a00 100644 (file)
@@ -91,7 +91,7 @@ hardware_platform(char *str, size_t len)
 
        while (fscanf(fp, "%255s : ", buf) != EOF) {
                if (strncmp(buf, mproc, strlen(mproc)) == 0) {
-                       fscanf(fp, "%255s", buf);
+                       (void)fscanf(fp, "%255s", buf);
                        fclose(fp);
                        return snprintf(str, len, ":%s", buf);
                }