summaryrefslogtreecommitdiff
path: root/libexec/ftp-proxy
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2001-08-19 05:50:51 +0000
committerBob Beck <beck@cvs.openbsd.org>2001-08-19 05:50:51 +0000
commite03f6d610ee7156cfd3111929b6574e3b516b167 (patch)
tree897dd5c98856d1d3d95daddfdf00fbc66e51b543 /libexec/ftp-proxy
parentb87e4bf2a85061e80746b6ca450e49e82bd82921 (diff)
KNF
Diffstat (limited to 'libexec/ftp-proxy')
-rw-r--r--libexec/ftp-proxy/ftp-proxy.c16
1 files changed, 5 insertions, 11 deletions
diff --git a/libexec/ftp-proxy/ftp-proxy.c b/libexec/ftp-proxy/ftp-proxy.c
index de6c6809ae2..26e3f6873dd 100644
--- a/libexec/ftp-proxy/ftp-proxy.c
+++ b/libexec/ftp-proxy/ftp-proxy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftp-proxy.c,v 1.2 2001/08/19 05:22:37 beck Exp $ */
+/* $OpenBSD: ftp-proxy.c,v 1.3 2001/08/19 05:50:50 beck Exp $ */
/*
* Copyright (c) 1996-2001
* Obtuse Systems Corporation. All rights reserved.
@@ -280,8 +280,7 @@ show_xfer_stats()
goto logit;
len -= i;
- }
- else {
+ } else {
i = snprintf(tbuf, len,
"data transfer completed (%dm %ds", idelta / 60,
idelta % 60);
@@ -471,15 +470,10 @@ do_client_cmd(struct csiob *client, struct csiob *server)
sendbuf = NULL;
} else
sendbuf = client->line_buffer;
- }
-
-
- /*
- * Watch out for EPRT commands.
- */
-
- else if ((strncasecmp((char *)client->line_buffer,"eprt ",
+ } else if ((strncasecmp((char *)client->line_buffer,"eprt ",
strlen("eprt ")) == 0)) {
+
+ /* Watch out for EPRT commands */
char *line = NULL;
char *q, *p;