aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2026-02-25 14:17:13 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2026-02-25 14:17:13 +0000
commit86a5a8e82238b512000b994bd59b7bf5e2769d4a (patch)
tree940d46569977211df1263c219c71b37d3abf1cda
parent279ca7184aebc1966a2f4e48e39cc25e201751af (diff)
downloadsmtpd-starttls-proxy-86a5a8e82238b512000b994bd59b7bf5e2769d4a.tar.gz
Use short options when their arguments are separate, duh
-rw-r--r--src/qmail-remote/qmail-remote-io.c2
-rw-r--r--src/qmail-remote/tls.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/qmail-remote/qmail-remote-io.c b/src/qmail-remote/qmail-remote-io.c
index 2b305c9..f917840 100644
--- a/src/qmail-remote/qmail-remote-io.c
+++ b/src/qmail-remote/qmail-remote-io.c
@@ -220,7 +220,7 @@ int main (int argc, char const *const *argv)
{ .so = 't', .lo = "timeoutremote", .i = GOLA_TIMEOUT },
{ .so = '6', .lo = "fdr", .i = GOLA_FDR },
{ .so = '7', .lo = "fdw", .i = GOLA_FDW },
- { .so = 0, .lo = "helohost", .i = GOLA_HELOHOST },
+ { .so = 'h', .lo = "helohost", .i = GOLA_HELOHOST },
} ;
char const *wgola[GOLA_N] = { 0 } ;
unsigned int fdr = 6, fdw = 7 ;
diff --git a/src/qmail-remote/tls.c b/src/qmail-remote/tls.c
index ffe9f2a..e77e78b 100644
--- a/src/qmail-remote/tls.c
+++ b/src/qmail-remote/tls.c
@@ -87,7 +87,7 @@ void run_tls (int fdr, char const *fmtip, unsigned int timeoutconnect, unsigned
argv[m++] = fmtr ;
argv[m++] = "-7" ;
argv[m++] = fmtw ;
- argv[m++] = "--helohost" ;
+ argv[m++] = "-h" ;
argv[m++] = storage + helopos ;
argv[m++] = "--" ;
argv[m++] = fmtip ;