diff options
author | 2018-05-21 21:25:37 +0000 | |
---|---|---|
committer | 2018-05-21 21:25:37 +0000 | |
commit | fe463512b8fdb85e5d5747487e973b9af0044c4f (patch) | |
tree | 61b27f82f739cc01d352d8892cc39647f4999504 | |
parent | Use loopback interfaces 100-103 instead of 1-3, with the hopes of getting it run (diff) | |
download | wireguard-openbsd-fe463512b8fdb85e5d5747487e973b9af0044c4f.tar.xz wireguard-openbsd-fe463512b8fdb85e5d5747487e973b9af0044c4f.zip |
Nuke unused variables. Initialize variable before use.
Makes clang happy.
ok gilles@
-rw-r--r-- | usr.sbin/smtpd/smtp_client.c | 3 | ||||
-rw-r--r-- | usr.sbin/smtpd/smtpc.c | 5 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/smtpd/smtp_client.c b/usr.sbin/smtpd/smtp_client.c index 7de51f3f8e6..fb573fe7094 100644 --- a/usr.sbin/smtpd/smtp_client.c +++ b/usr.sbin/smtpd/smtp_client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtp_client.c,v 1.2 2018/04/26 21:19:46 eric Exp $ */ +/* $OpenBSD: smtp_client.c,v 1.3 2018/05/21 21:25:37 krw Exp $ */ /* * Copyright (c) 2018 Eric Faurot <eric@openbsd.org> @@ -550,6 +550,7 @@ smtp_client_response(struct smtp_client *proto, const char *line) * more lines if another rcpt needs a status. */ for (i = 0, seen = 0; i < proto->mail->rcptcount; i++) { + rcpt = &proto->mail->rcpt[i]; if (rcpt[i].done) continue; if (seen) { diff --git a/usr.sbin/smtpd/smtpc.c b/usr.sbin/smtpd/smtpc.c index e7c401db90c..8bbd1f43d87 100644 --- a/usr.sbin/smtpd/smtpc.c +++ b/usr.sbin/smtpd/smtpc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smtpc.c,v 1.2 2018/04/26 21:19:46 eric Exp $ */ +/* $OpenBSD: smtpc.c,v 1.3 2018/05/21 21:25:37 krw Exp $ */ /* * Copyright (c) 2018 Eric Faurot <eric@openbsd.org> @@ -62,7 +62,6 @@ int main(int argc, char **argv) { char hostname[256]; - struct smtp_client *conn; int ch, i; char *server = "localhost"; struct passwd *pw; @@ -159,7 +158,7 @@ parse_server(char *server) { struct addrinfo hints; char *scheme, *creds, *host, *port, *p, *c; - int error, portno; + int error; creds = NULL; host = NULL; |