فهرست منبع

explicitly cast recv() arg2 for SunOS5.6

git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@213 f882894a-f735-0410-b71e-b25c423dba1c
Karl DeBisschop 23 سال پیش
والد
کامیت
af00c7bc63
1فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 3 3
      plugins/check_time.c

+ 3 - 3
plugins/check_time.c

@@ -93,12 +93,12 @@ main (int argc, char **argv)
 		else
 		else
 			result = STATE_UNKNOWN;
 			result = STATE_UNKNOWN;
 		terminate (result,
 		terminate (result,
-							 "TIME UNKNOWN - could not connect to server %s, port %d\n",
-							 server_address, server_port);
+		           "TIME UNKNOWN - could not connect to server %s, port %d\n",
+		           server_address, server_port);
 	}
 	}
 
 
 	/* watch for the connection string */
 	/* watch for the connection string */
-	result = recv (sd, &raw_server_time, sizeof (raw_server_time), 0);
+	result = recv (sd, (void *)&raw_server_time, sizeof (raw_server_time), 0);
 
 
 	/* close the connection */
 	/* close the connection */
 	close (sd);
 	close (sd);