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

Karl DeBisschop kdebisschop at users.sourceforge.net
Tue Nov 19 12:48:02 CET 2002


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

Modified Files:
	check_time.c 
Log Message:
explicitly cast recv() arg2 for SunOS5.6

Index: check_time.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins/check_time.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** check_time.c	9 Nov 2002 04:22:22 -0000	1.2
--- check_time.c	19 Nov 2002 19:06:55 -0000	1.3
***************
*** 94,103 ****
  			result = STATE_UNKNOWN;
  		terminate (result,
! 							 "TIME UNKNOWN - could not connect to server %s, port %d\n",
! 							 server_address, server_port);
  	}
  
  	/* watch for the connection string */
! 	result = recv (sd, &raw_server_time, sizeof (raw_server_time), 0);
  
  	/* close the connection */
--- 94,103 ----
  			result = STATE_UNKNOWN;
  		terminate (result,
! 		           "TIME UNKNOWN - could not connect to server %s, port %d\n",
! 		           server_address, server_port);
  	}
  
  	/* watch for the connection string */
! 	result = recv (sd, (void *)&raw_server_time, sizeof (raw_server_time), 0);
  
  	/* close the connection */





More information about the Commits mailing list