Code

Don't try to print `optarg' (which will be a NULL pointer) if an unknown
[nagiosplug.git] / plugins / check_ups.c
index 280b3fb6c0489821ee03c7eb79ca26017c48a5d3..56438bb28007b0d019113b4e62ef62a6c34a1232 100644 (file)
@@ -494,7 +494,7 @@ process_arguments (int argc, char **argv)
 
                switch (c) {
                case '?':                                                                       /* help */
-                       usage2 (_("Unknown argument"), optarg);
+                       usage5 ();
                case 'H':                                                                       /* hostname */
                        if (is_host (optarg)) {
                                server_address = optarg;