[Slirp] [Git][slirp/libslirp][master] 2 commits: Fix unused variables
Samuel Thibault
gitlab at gitlab.freedesktop.org
Sat Jan 23 20:38:42 UTC 2021
Samuel Thibault pushed to branch master at slirp / libslirp
Commits:
216f434a by Marc-André Lureau at 2021-01-24T00:32:37+04:00
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 at redhat.com>
- - - - -
5dce846e by Samuel Thibault at 2021-01-23T20:38:40+00:00
Merge branch 'unused' into 'master'
Fix unused variables
See merge request slirp/libslirp!63
- - - - -
1 changed file:
- src/slirp.c
Changes:
=====================================
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;
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/72654d84113c8b241028342b1b79d70220ff92bd...5dce846e3ee82d93462bc637bb0db2fd49f0fc5a
--
View it on GitLab: https://gitlab.freedesktop.org/slirp/libslirp/-/compare/72654d84113c8b241028342b1b79d70220ff92bd...5dce846e3ee82d93462bc637bb0db2fd49f0fc5a
You're receiving this email because of your account on gitlab.freedesktop.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/slirp/attachments/20210123/0c2e30ea/attachment.htm>
More information about the Slirp
mailing list