From 4f02f7d0aa7bc69c637dbe66dcafcf43af2de7a2 Mon Sep 17 00:00:00 2001 From: Erik Ekman Date: Wed, 29 Jan 2014 19:10:52 +0100 Subject: [PATCH] Fix warning, unused variable 'encsize' --- src/encoding.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/encoding.c b/src/encoding.c index 896d67d..773f08e 100644 --- a/src/encoding.c +++ b/src/encoding.c @@ -23,7 +23,6 @@ build_hostname(char *buf, size_t buflen, const char *data, const size_t datalen, const char *topdomain, struct encoder *encoder, int maxlen) { - int encsize; size_t space; char *b; @@ -35,7 +34,7 @@ build_hostname(char *buf, size_t buflen, memset(buf, 0, buflen); - encsize = encoder->encode(buf, &space, data, datalen); + encoder->encode(buf, &space, data, datalen); if (!encoder->places_dots()) inline_dotify(buf, buflen);