[Nagiosplug-checkins] CVS: nagiosplug/plugins check_dummy.c,1.2,1.3

Karl DeBisschop kdebisschop at users.sourceforge.net
Thu Jul 31 23:05:02 CEST 2003


Update of /cvsroot/nagiosplug/nagiosplug/plugins
In directory sc8-pr-cvs1:/tmp/cvs-serv4783/plugins

Modified Files:
	check_dummy.c 
Log Message:
mark for transaltion

Index: check_dummy.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_dummy.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** check_dummy.c	13 Jan 2003 12:15:15 -0000	1.2
--- check_dummy.c	1 Aug 2003 06:04:01 -0000	1.3
***************
*** 39,45 ****
  
  const char *progname = "check_dummy";
  
! void print_help (const char *);
! void print_usage (const char *);
  
  int
--- 39,67 ----
  
  const char *progname = "check_dummy";
+ const char *revision = "$Revision$";
+ const char *copyright = "1999-2003";
+ const char *email = "nagiosplug-devel at lists.sourceforge.net";
  
! void
! print_usage (void)
! {
! 	printf (_("Usage: %s <integer state>\n"), progname);
! }
! 
! void
! print_help (void)
! {
! 	print_revision (progname, revision);
! 
! 	printf (_(COPYRIGHT), copyright, email);
! 
! 	print_usage ();
! 
! 	printf (_(HELP_VRSN));
! 
! 	printf (_("\n\
! This plugin will simply return the state corresponding to the numeric value\n\
! of the <state> argument.\n"));
! }
  
  int
***************
*** 49,65 ****
  
  	if (argc != 2) {
! 		printf ("Incorrect number of arguments supplied\n");
  		exit (STATE_UNKNOWN);
  	}
  	else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) {
! 		print_revision (argv[0], "$Revision$");
  		exit (STATE_OK);
  	}
  	else if (strcmp (argv[1], "-h") == 0 || strcmp (argv[1], "--help") == 0) {
! 		print_help (argv[0]);
  		exit (STATE_OK);
  	}
  	else if (!is_integer (argv[1])) {
! 		print_usage (argv[0]);
  		exit (STATE_UNKNOWN);
  	}
--- 71,87 ----
  
  	if (argc != 2) {
! 		printf (_("Incorrect number of arguments supplied\n"));
  		exit (STATE_UNKNOWN);
  	}
  	else if (strcmp (argv[1], "-V") == 0 || strcmp (argv[1], "--version") == 0) {
! 		print_revision (progname, revision);
  		exit (STATE_OK);
  	}
  	else if (strcmp (argv[1], "-h") == 0 || strcmp (argv[1], "--help") == 0) {
! 		print_help ();
  		exit (STATE_OK);
  	}
  	else if (!is_integer (argv[1])) {
! 		print_usage ();
  		exit (STATE_UNKNOWN);
  	}
***************
*** 82,102 ****
  
  	return result;
- }
- 
- void
- print_help (const char *cmd)
- {
- 	print_revision (cmd, "$Revision$");
- 	printf ("Copyright (c) 1999 Ethan Galstad (nagios at nagios.org)\n"
- 					"License: GPL\n\n");
- 	print_usage (cmd);
- 	printf
- 		("\nThis plugin will simply return the state corresponding to the numeric value\n"
- 		 "of the <state> argument.\n");
- }
- 
- void
- print_usage (const char *cmd)
- {
- 	printf ("Usage: %s <integer state>\n", cmd);
  }
--- 104,106 ----





More information about the Commits mailing list