From 4dadb76c5b7e73615de4a1ff923aa46b77b95330 Mon Sep 17 00:00:00 2001 From: Chris Sharp Date: Tue, 19 Sep 2017 21:25:12 -0400 Subject: [PATCH] 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 Signed-off-by: Galen Charlton --- src/gateway/osrf_websocket_translator.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gateway/osrf_websocket_translator.c b/src/gateway/osrf_websocket_translator.c index 2d3a5e1..8da5a36 100644 --- a/src/gateway/osrf_websocket_translator.c +++ b/src/gateway/osrf_websocket_translator.c @@ -622,7 +622,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) { @@ -637,7 +637,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) { @@ -652,7 +652,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"); -- 2.43.2