aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2021-01-24 00:32:35 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2021-01-24 00:32:37 +0400
commit216f434a018b3af182a4f31bbe5a00daee170343 (patch)
treeba2dc9289b946723df7773861587c49f6b8f8fa6
parent72654d84113c8b241028342b1b79d70220ff92bd (diff)
downloadslirp-216f434a018b3af182a4f31bbe5a00daee170343.zip
slirp-216f434a018b3af182a4f31bbe5a00daee170343.tar.gz
slirp-216f434a018b3af182a4f31bbe5a00daee170343.tar.bz2
Fix unused variables
../../subprojects/libslirp/src/slirp.c:131:17: error: unused variable 'old_stat' [-Werror,-Wunused-variable] struct stat old_stat; ^ ../../subprojects/libslirp/src/slirp.c:143:10: error: unused variable 'buff' [-Werror,-Wunused-variable] char buff[512]; ^ 2 errors generated. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
-rw-r--r--src/slirp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/slirp.c b/src/slirp.c
index abb6f9a..f22ebeb 100644
--- a/src/slirp.c
+++ b/src/slirp.c
@@ -128,7 +128,6 @@ static void winsock_cleanup(void)
static int get_dns_addr_cached(void *pdns_addr, void *cached_addr,
socklen_t addrlen, unsigned *cached_time)
{
- struct stat old_stat;
if (curtime - *cached_time < TIMEOUT_DEFAULT) {
memcpy(pdns_addr, cached_addr, addrlen);
return 0;
@@ -140,7 +139,6 @@ static int get_dns_addr_libresolv(int af, void *pdns_addr, void *cached_addr,
socklen_t addrlen, uint32_t *scope_id,
unsigned *cached_time)
{
- char buff[512];
struct __res_state state;
union res_sockaddr_union servers[NI_MAXSERV];
int count;