From: Chris Sharp Date: Wed, 20 Sep 2017 01:25:12 +0000 (-0400) Subject: LP#1243841 - Quiet wrong format warnings during make install. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5ad89707dd2d276d89d46b391405ec68f8b6f8b5;p=working%2FOpenSRF.git LP#1243841 - Quiet wrong format warnings during make install. During make install, the compiler warns that %d expects an int when the actual value is a long int. Changing %d to %ld fixes the issue. Signed-off-by: Chris Sharp Signed-off-by: Jason Stephenson --- diff --git a/src/gateway/osrf_websocket_translator.c b/src/gateway/osrf_websocket_translator.c index ef8d4af..0d27f8f 100644 --- a/src/gateway/osrf_websocket_translator.c +++ b/src/gateway/osrf_websocket_translator.c @@ -606,7 +606,7 @@ int child_init(const WebSocketServer *server) { } ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, - "WS: timeout set to %d", idle_timeout_interval); + "WS: timeout set to %ld", idle_timeout_interval); timeout = getenv("OSRF_WEBSOCKET_MAX_REQUEST_WAIT_TIME"); if (timeout) { @@ -621,7 +621,7 @@ int child_init(const WebSocketServer *server) { } ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, - "WS: max request wait time set to %d", max_request_wait_time); + "WS: max request wait time set to %ld", max_request_wait_time); char* interval = getenv("OSRF_WEBSOCKET_IDLE_CHECK_INTERVAL"); if (interval) { @@ -636,7 +636,7 @@ int child_init(const WebSocketServer *server) { } ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, - "WS: idle check interval set to %d", idle_check_interval); + "WS: idle check interval set to %ld", idle_check_interval); char* cfile = getenv("OSRF_WEBSOCKET_CONFIG_FILE");