aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/librdns
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-07 09:34:46 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-04-07 09:45:16 +0100
commitc207930dc64a680cc9a1ae9075e66f9d963e32e4 (patch)
tree622d707a9f57dc2cd80d7ae85ca476c05960be2d /contrib/librdns
parent6970374fc3e1dca0f7a428470149e3952079cc61 (diff)
downloadrspamd-c207930dc64a680cc9a1ae9075e66f9d963e32e4.tar.gz
rspamd-c207930dc64a680cc9a1ae9075e66f9d963e32e4.zip
[Minor] Fix various warnings
Diffstat (limited to 'contrib/librdns')
-rw-r--r--contrib/librdns/util.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/contrib/librdns/util.c b/contrib/librdns/util.c
index 863db3564..9536a35b2 100644
--- a/contrib/librdns/util.c
+++ b/contrib/librdns/util.c
@@ -56,8 +56,7 @@ static int
rdns_make_inet_socket (int type, struct addrinfo *addr, struct sockaddr **psockaddr,
socklen_t *psocklen)
{
- int fd, r, s_error;
- socklen_t optlen;
+ int fd = -1;
struct addrinfo *cur;
cur = addr;
@@ -96,8 +95,7 @@ out:
static int
rdns_make_unix_socket (const char *path, struct sockaddr_un *addr, int type)
{
- int fd = -1, s_error, r, serrno;
- socklen_t optlen;
+ int fd = -1, serrno;
if (path == NULL) {
return -1;
@@ -178,7 +176,7 @@ rdns_make_client_socket (const char *credits,
struct sockaddr *cpy;
cpy = calloc (1, sizeof (un));
- *psockaddr = sizeof (un);
+ *psocklen = sizeof (un);
if (cpy == NULL) {
close (r);
@@ -424,6 +422,8 @@ rdns_reply_free (struct rdns_reply *rep)
free (entry->content.soa.mname);
free (entry->content.soa.admin);
break;
+ default:
+ break;
}
free (entry);
}