[Nagiosplug-checkins] CVS: nagiosplug/contrib check_dhcp.c,1.2,1.3 check_fping_in.c,1.1.1.1,1.2 check_rbl.c,1.1,1.2

Karl DeBisschop kdebisschop at users.sourceforge.net
Mon Jan 13 04:22:02 CET 2003


Update of /cvsroot/nagiosplug/nagiosplug/contrib
In directory sc8-pr-cvs1:/tmp/cvs-serv19827

Modified Files:
	check_dhcp.c check_fping_in.c check_rbl.c 
Log Message:
convert PROGANE from a define to a const char

Index: check_dhcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/contrib/check_dhcp.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** check_dhcp.c	1 Mar 2002 02:42:56 -0000	1.2
--- check_dhcp.c	13 Jan 2003 12:21:51 -0000	1.3
***************
*** 43,47 ****
  #include <netdb.h>
  
! #define PROGNAME "check_dhcp"
  
  /*#define DEBUG*/
--- 43,47 ----
  #include <netdb.h>
  
! const char *progname = "check_dhcp";
  
  /*#define DEBUG*/
***************
*** 811,815 ****
  void print_help(void){
  
! 	/*print_revision(PROGNAME,"$Revision$");*/
  
  	printf("Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org)\n\n");
--- 811,815 ----
  void print_help(void){
  
! 	/*print_revision(progname,"$Revision$");*/
  
  	printf("Copyright (c) 2001-2002 Ethan Galstad (nagios at nagios.org)\n\n");
***************
*** 845,851 ****
  void print_usage(void){
  
! 	printf("Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface]\n",PROGNAME);
! 	printf("       %s --help\n",PROGNAME);
! 	printf("       %s --version\n",PROGNAME);
  
  	return;
--- 845,851 ----
  void print_usage(void){
  
! 	printf("Usage: %s [-s serverip] [-r requestedip] [-t timeout] [-i interface]\n",progname);
! 	printf("       %s --help\n",progname);
! 	printf("       %s --version\n",progname);
  
  	return;
***************
*** 963,967 ****
  		case 'V': /* version */
  
! 			/*print_revision(PROGNAME,"$Revision$");*/
  			exit(STATE_OK);
  
--- 963,967 ----
  		case 'V': /* version */
  
! 			/*print_revision(progname,"$Revision$");*/
  			exit(STATE_OK);
  

Index: check_fping_in.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/contrib/check_fping_in.c,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -r1.1.1.1 -r1.2
*** check_fping_in.c	28 Feb 2002 06:42:53 -0000	1.1.1.1
--- check_fping_in.c	13 Jan 2003 12:21:51 -0000	1.2
***************
*** 36,40 ****
  #include "utils.h"
  
! #define PROGNAME "check_fping"
  #define PACKET_COUNT 15
  #define PACKET_SIZE 56
--- 36,40 ----
  #include "utils.h"
  
! const char *progname = "check_fping_in";
  #define PACKET_COUNT 15
  #define PACKET_SIZE 56
***************
*** 380,384 ****
  void print_usage(void)
  {
! 	printf("Usage: %s <host_address> <host_address> [<host_address>] ...\n",PROGNAME);
  }
  
--- 380,384 ----
  void print_usage(void)
  {
! 	printf("Usage: %s <host_address> <host_address> [<host_address>] ...\n",progname);
  }
  
***************
*** 390,394 ****
  {
  
! 	print_revision(PROGNAME,"$Revision$");
  
  	printf
--- 390,394 ----
  {
  
! 	print_revision(progname,"$Revision$");
  
  	printf

Index: check_rbl.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/contrib/check_rbl.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** check_rbl.c	25 Jun 2002 21:32:54 -0000	1.1
--- check_rbl.c	13 Jan 2003 12:21:51 -0000	1.2
***************
*** 22,26 ****
  #include "string.h"
  
! #define PROGNAME "check_rbl"
  
  int process_arguments(int, char **);
--- 22,26 ----
  #include "string.h"
  
! const char progname = "check_rbl";
  
  int process_arguments(int, char **);
***************
*** 261,265 ****
  				break;
        case 'V': /* version */
! 				print_revision(PROGNAME,"$Revision$");
  				exit(STATE_OK);
        case 'h': /* help */
--- 261,265 ----
  				break;
        case 'V': /* version */
! 				print_revision(progname,"$Revision$");
  				exit(STATE_OK);
        case 'h': /* help */
***************
*** 291,295 ****
  void print_help(void)
  {
! 	print_revision(PROGNAME,"$Revision$");
  	printf
  		("Copyright (c) 2000 Karl DeBisschop\n\n"
--- 291,295 ----
  void print_help(void)
  {
! 	print_revision(progname,"$Revision$");
  	printf
  		("Copyright (c) 2000 Karl DeBisschop\n\n"
***************
*** 326,329 ****
  		 "       %s --help\n"
  		 "       %s --version\n",
! 		 PROGNAME,PROGNAME,PROGNAME);
  }
--- 326,329 ----
  		 "       %s --help\n"
  		 "       %s --version\n",
! 		 progname, progname, progname);
  }





More information about the Commits mailing list