From: Roy Marples Date: Mon, 3 Mar 2014 15:52:02 +0000 (+0000) Subject: We don't care about the result of these functions. X-Git-Tag: v6.3.2~41 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b1a6a84ba336a1608a27107b16c9ed0e9c417c81;p=thirdparty%2Fdhcpcd.git We don't care about the result of these functions. --- diff --git a/dhcp.c b/dhcp.c index acbca2fa..c64b6ae7 100644 --- 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 diff --git a/platform-linux.c b/platform-linux.c index 468f3fde..ae44bbaf 100644 --- a/platform-linux.c +++ b/platform-linux.c @@ -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); }