diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-22 06:22:38 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-08-22 06:22:38 +0000 |
commit | 22bd672d19c378f1e6124ee18e64e5a88cf53739 (patch) | |
tree | 127016323f2f3059819f75adb5568a00a0431fc2 /plugins/check_dig.c | |
parent | d35f99c8a9f546a0f02f09ad3f722f66322e813d (diff) | |
download | monitoring-plugins-22bd672d19c378f1e6124ee18e64e5a88cf53739.tar.gz |
- bindtextdomain for gettext, a few other smale cleanups here and there
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@690 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_dig.c')
-rw-r--r-- | plugins/check_dig.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_dig.c b/plugins/check_dig.c index f376e309..dc4f89ae 100644 --- a/plugins/check_dig.c +++ b/plugins/check_dig.c | |||
@@ -42,11 +42,6 @@ int server_port = DEFAULT_PORT; | |||
42 | int warning_interval = -1; | 42 | int warning_interval = -1; |
43 | int critical_interval = -1; | 43 | int critical_interval = -1; |
44 | 44 | ||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | int | 45 | int |
51 | main (int argc, char **argv) | 46 | main (int argc, char **argv) |
52 | { | 47 | { |
@@ -57,6 +52,10 @@ main (int argc, char **argv) | |||
57 | 52 | ||
58 | output = strdup (""); | 53 | output = strdup (""); |
59 | 54 | ||
55 | setlocale (LC_ALL, ""); | ||
56 | bindtextdomain (PACKAGE, LOCALEDIR); | ||
57 | textdomain (PACKAGE); | ||
58 | |||
60 | /* Set signal handling and alarm */ | 59 | /* Set signal handling and alarm */ |
61 | if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) | 60 | if (signal (SIGALRM, popen_timeout_alarm_handler) == SIG_ERR) |
62 | usage (_("Cannot catch SIGALRM\n")); | 61 | usage (_("Cannot catch SIGALRM\n")); |
@@ -280,6 +279,7 @@ print_help (void) | |||
280 | 279 | ||
281 | print_revision (progname, revision); | 280 | print_revision (progname, revision); |
282 | 281 | ||
282 | printf (_("Copyright (c) 2000 Karl DeBisschop <kdebisschop@users.sourceforge.net>\n")); | ||
283 | printf (_(COPYRIGHT), copyright, email); | 283 | printf (_(COPYRIGHT), copyright, email); |
284 | 284 | ||
285 | printf (_("Test the DNS service on the specified host using dig\n\n")); | 285 | printf (_("Test the DNS service on the specified host using dig\n\n")); |