summaryrefslogtreecommitdiff
path: root/usr.sbin/smtpd
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2018-05-21 21:25:38 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2018-05-21 21:25:38 +0000
commitc7219a2e7b935cd334179d7e7303b3922b490a77 (patch)
treeb28e6a912261bf5d2a9a941ee4e83a3eb8e0e02b /usr.sbin/smtpd
parent4b270d8dd6f94a9d0d9efff87edf0deff601779b (diff)
Nuke unused variables. Initialize variable before use.
Makes clang happy. ok gilles@
Diffstat (limited to 'usr.sbin/smtpd')
-rw-r--r--usr.sbin/smtpd/smtp_client.c3
-rw-r--r--usr.sbin/smtpd/smtpc.c5
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;