From e2f6dce4b00fcbb16d1e6565dc875b64d0741878 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Thu, 6 Nov 1997 21:42:30 +0000 Subject: [PATCH] (getit): removed stupid goto git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3808 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/ftp/ftp/cmds.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/appl/ftp/ftp/cmds.c b/appl/ftp/ftp/cmds.c index 8d6a1292f..28f1fe737 100644 --- a/appl/ftp/ftp/cmds.c +++ b/appl/ftp/ftp/cmds.c @@ -571,10 +571,8 @@ getit(int argc, char **argv, int restartit, char *mode) argv[2] = argv[1]; loc++; } - if (argc < 2 && !another(&argc, &argv, "remote-file")) - goto usage; - if (argc < 3 && !another(&argc, &argv, "local-file")) { -usage: + if ((argc < 2 && !another(&argc, &argv, "remote-file")) || + (argc < 3 && !another(&argc, &argv, "local-file"))) { printf("usage: %s remote-file [ local-file ]\n", argv[0]); code = -1; return (0);