does not exist. Also, use herror, not perror if gethostbynam() fails.
-/* $OpenBSD: http.c,v 1.1 1996/09/03 18:00:06 deraadt Exp $ */
+/* $OpenBSD: http.c,v 1.2 1997/01/29 22:21:32 millert Exp $ */
/*
* Copyright (c) 1996 Theo de Raadt
he = gethostbyname(hostname);
if (!he) {
- perror("gethostbyname");
+ herror("gethostbyname");
goto die;
}
-/* $OpenBSD: main.c,v 1.15 1997/01/25 21:42:33 deraadt Exp $ */
+/* $OpenBSD: main.c,v 1.16 1997/01/29 22:21:32 millert Exp $ */
/*
* Copyright (c) 1985, 1989, 1993, 1994
#if 0
static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.15 1997/01/25 21:42:33 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.16 1997/01/29 22:21:32 millert Exp $";
#endif
#endif /* not lint */
if (!connected) {
printf("failed to connect to %s\n", host);
ret = 1;
+ argc--;
+ argv++;
goto bail;
}
*argv = p + 1;