summaryrefslogtreecommitdiffstats
path: root/plugins/check_pgsql.c
diff options
context:
space:
mode:
authorKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
committerKarl DeBisschop <kdebisschop@users.sourceforge.net>2003-01-13 12:15:16 (GMT)
commit0c3386274ef5002dffc20337ef02407f24d7400c (patch)
tree1e78bac7844a548e56a642b35acfe1fd67342f71 /plugins/check_pgsql.c
parentde5650f28e4e43a7264913953f95a75d8afe23f0 (diff)
downloadmonitoring-plugins-0c3386274ef5002dffc20337ef02407f24d7400c.tar.gz
convert PROGANE from a define to a const char
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@238 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins/check_pgsql.c')
-rw-r--r--plugins/check_pgsql.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/check_pgsql.c b/plugins/check_pgsql.c
index 98c504f..4c8662b 100644
--- a/plugins/check_pgsql.c
+++ b/plugins/check_pgsql.c
@@ -23,7 +23,7 @@
23 * 23 *
24 *****************************************************************************/ 24 *****************************************************************************/
25 25
26#define PROGNAME "check_pgsql" 26const char *progname = "check_pgsql"
27#define REVISION "$Revision$" 27#define REVISION "$Revision$"
28#define COPYRIGHT "1999-2001" 28#define COPYRIGHT "1999-2001"
29#define AUTHOR "Karl DeBisschop" 29#define AUTHOR "Karl DeBisschop"
@@ -122,7 +122,7 @@ Please note that all tags must be lowercase to use the DocBook XML DTD.
122<manvolnum>5<manvolnum> 122<manvolnum>5<manvolnum>
123</refmeta> 123</refmeta>
124<refnamdiv> 124<refnamdiv>
125<refname>&PROGNAME;</refname> 125<refname>&progname;</refname>
126<refpurpose>&SUMMARY;</refpurpose> 126<refpurpose>&SUMMARY;</refpurpose>
127</refnamdiv> 127</refnamdiv>
128</refentry> 128</refentry>
@@ -218,7 +218,7 @@ main (int argc, char **argv)
218void 218void
219print_help (void) 219print_help (void)
220{ 220{
221 print_revision (PROGNAME, REVISION); 221 print_revision (progname, REVISION);
222 printf 222 printf
223 ("Copyright (c) %s %s <%s>\n\n%s\n", 223 ("Copyright (c) %s %s <%s>\n\n%s\n",
224 COPYRIGHT, AUTHOR, EMAIL, SUMMARY); 224 COPYRIGHT, AUTHOR, EMAIL, SUMMARY);
@@ -235,7 +235,7 @@ print_usage (void)
235 printf ("Usage:\n" " %s %s\n" 235 printf ("Usage:\n" " %s %s\n"
236 " %s (-h | --help) for detailed help\n" 236 " %s (-h | --help) for detailed help\n"
237 " %s (-V | --version) for version information\n", 237 " %s (-V | --version) for version information\n",
238 PROGNAME, OPTIONS, PROGNAME, PROGNAME); 238 progname, OPTIONS, progname, progname);
239} 239}
240 240
241 241
@@ -281,7 +281,7 @@ process_arguments (int argc, char **argv)
281 print_help (); 281 print_help ();
282 exit (STATE_OK); 282 exit (STATE_OK);
283 case 'V': /* version */ 283 case 'V': /* version */
284 print_revision (PROGNAME, REVISION); 284 print_revision (progname, REVISION);
285 exit (STATE_OK); 285 exit (STATE_OK);
286 case 't': /* timeout period */ 286 case 't': /* timeout period */
287 if (!is_integer (optarg)) 287 if (!is_integer (optarg))