diff --git a/plugins/check_time.c b/plugins/check_time.c
index 5d07f545a99268aa11845767a147dc93a2a7e4c0..63d7ee255bb94ed0dc2a21196ed728161dbe80b8 100644 (file)
--- a/plugins/check_time.c
+++ b/plugins/check_time.c
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
- if (process_arguments (argc, argv) != TRUE)
+ if (process_arguments (argc, argv) == ERROR)
usage4 (_("Could not parse arguments"));
/* initialize alarm signal handling */
check_warning_time = TRUE;
}
else {
- usage (_("Warning thresholds must be a positive integer\n"));
+ usage4 (_("Warning thresholds must be a positive integer"));
}
}
else {
- usage (_("Warning threshold must be a positive integer\n"));
+ usage4 (_("Warning threshold must be a positive integer"));
}
break;
case 'c': /* critical-variance */
check_critical_time = TRUE;
}
else {
- usage (_("Critical thresholds must be a positive integer\n"));
+ usage4 (_("Critical thresholds must be a positive integer"));
}
}
else {
- usage (_("Critical threshold must be a positive integer\n"));
+ usage4 (_("Critical threshold must be a positive integer"));
}
break;
case 'W': /* warning-connect */
if (!is_intnonneg (optarg))
- usage (_("Warning threshold must be a positive integer\n"));
+ usage4 (_("Warning threshold must be a positive integer"));
else
warning_time = atoi (optarg);
check_warning_time = TRUE;
break;
case 'C': /* critical-connect */
if (!is_intnonneg (optarg))
- usage (_("Critical threshold must be a positive integer\n"));
+ usage4 (_("Critical threshold must be a positive integer"));
else
critical_time = atoi (optarg);
check_critical_time = TRUE;
break;
case 'p': /* port */
if (!is_intnonneg (optarg))
- usage (_("Port must be a positive integer\n"));
+ usage4 (_("Port must be a positive integer"));
else
server_port = atoi (optarg);
break;
server_address = argv[c];
}
else {
- usage (_("Hostname was not supplied\n"));
+ usage4 (_("Hostname was not supplied"));
}
}
printf ("Copyright (c) 1999 Ethan Galstad\n");
printf (COPYRIGHT, copyright, email);
- printf (_("\
-This plugin will check the time on the specified host.\n\n"));
+ printf (_("This plugin will check the time on the specified host.\n\n"));
print_usage ();
{
printf ("\
Usage: %s -H <host_address> [-p port] [-u] [-w variance] [-c variance]\n\
- [-W connect_time] [-C connect_time] [-t timeout]\n", progname);
+ [-W connect_time] [-C connect_time] [-t timeout]\n", progname);
}