(getit): removed stupid goto

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3808 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-11-06 21:42:30 +00:00
parent 6ed1298d81
commit e2f6dce4b0

View File

@@ -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);