remove unused variables - hurl - Gopher/HTTP/HTTPS file grabber
(HTM) git clone git://git.codemadness.org/hurl
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit e3912666fc4f1516b588d03f6ae389dbc84339b4
(DIR) parent 7b754ee4801e3fada177b6ade9d3144a126da8a5
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Fri, 12 Mar 2021 22:33:21 +0100
remove unused variables
Diffstat:
M hurl.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
(DIR) diff --git a/hurl.c b/hurl.c
@@ -182,7 +182,6 @@ edial(const char *host, const char *port)
struct addrinfo hints, *res, *res0;
int error, save_errno, s;
const char *cause = NULL;
- struct timeval timeout;
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
@@ -480,8 +479,8 @@ err:
int
gopher_request(void)
{
- char buf[READ_BUF_SIZ], *p;
- const char *errstr, *path;
+ char buf[READ_BUF_SIZ];
+ const char *path;
size_t len = 0;
ssize_t r;
int fd = -1, ret = 1;