From: Simon Schubert <2@0x2c.org> Date: Mon, 2 Jan 2012 19:41:02 +0000 (+0100) Subject: clear up warnings found by clang static analysis X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ca32b516bc59085049d862042b44e11803867697;p=people%2Fms%2Fdma.git clear up warnings found by clang static analysis --- diff --git a/conf.c b/conf.c index 4e15b59..6e4eb25 100644 --- a/conf.c +++ b/conf.c @@ -56,8 +56,6 @@ trim_line(char *line) size_t linelen; char *p; - p = line; - if ((p = strchr(line, '\n'))) *p = (char)0; diff --git a/dns.c b/dns.c index ce80745..fc5213f 100644 --- a/dns.c +++ b/dns.c @@ -66,12 +66,9 @@ add_host(int pref, const char *host, int port, struct mx_hostentry **he, size_t struct addrinfo hints, *res, *res0 = NULL; char servname[10]; struct mx_hostentry *p; - size_t onhosts; const int count_inc = 10; int err; - onhosts = *ps; - memset(&hints, 0, sizeof(hints)); hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM;