--- a/dnsresolve.c +++ b/dnsresolve.c @@ -19,7 +19,7 @@ if (argc != 2) { fprintf (stderr, "Usage: %s hostname\n", argv[0]); - exit (0); + return EXIT_FAILURE; } he = gethostbyname (argv[1]);