[sr-dev] git:master:1ba1b9c8: websocket: removed unused str statuses

Daniel-Constantin Mierla miconda at gmail.com
Wed Jan 4 08:52:56 CET 2017


Module: kamailio
Branch: master
Commit: 1ba1b9c8d3c1e82724eddc2d0b806b0fea0274bf
URL: https://github.com/kamailio/kamailio/commit/1ba1b9c8d3c1e82724eddc2d0b806b0fea0274bf

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2017-01-04T08:52:19+01:00

websocket: removed unused str statuses

---

Modified: src/modules/websocket/websocket.c
Modified: src/modules/websocket/ws_conn.c
Modified: src/modules/websocket/ws_frame.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1ba1b9c8d3c1e82724eddc2d0b806b0fea0274bf.diff
Patch: https://github.com/kamailio/kamailio/commit/1ba1b9c8d3c1e82724eddc2d0b806b0fea0274bf.patch

---

diff --git a/src/modules/websocket/websocket.c b/src/modules/websocket/websocket.c
index 681617c..826c540 100644
--- a/src/modules/websocket/websocket.c
+++ b/src/modules/websocket/websocket.c
@@ -46,7 +46,7 @@
 
 MODULE_VERSION
 
-/* Maximum number of connections to display when using the ws.dump MI command */
+/* Maximum number of connections to display when using the ws.dump command */
 #define MAX_WS_CONNS_DUMP		50
 
 static int mod_init(void);
diff --git a/src/modules/websocket/ws_conn.c b/src/modules/websocket/ws_conn.c
index dd03b9b..4abe960 100644
--- a/src/modules/websocket/ws_conn.c
+++ b/src/modules/websocket/ws_conn.c
@@ -33,7 +33,7 @@
 #include "ws_conn.h"
 #include "websocket.h"
 
-/* Maximum number of connections to display when using the ws.dump MI command */
+/* Maximum number of connections to display when using the ws.dump command */
 #define MAX_WS_CONNS_DUMP	50
 
 ws_connection_t **wsconn_id_hash = NULL;
@@ -66,10 +66,8 @@ char *wsconn_state_str[] =
 	"CLOSED"	/* WS_S_CLOSED */
 };
 
-/* MI command status text */
-static str str_status_empty_param = str_init("Empty display order parameter");
+/* RPC command status text */
 static str str_status_bad_param = str_init("Bad display order parameter");
-static str str_status_too_many_params = str_init("Too many parameters");
 
 int wsconn_init(void)
 {
diff --git a/src/modules/websocket/ws_frame.c b/src/modules/websocket/ws_frame.c
index 2e6051c..cdd1342 100644
--- a/src/modules/websocket/ws_frame.c
+++ b/src/modules/websocket/ws_frame.c
@@ -127,13 +127,9 @@ static str str_status_protocol_error = str_init("Protocol error");
 static str str_status_unsupported_opcode = str_init("Unsupported opcode");
 static str str_status_message_too_big = str_init("Message too big");
 
-/* MI command status text */
-static str str_status_empty_param = str_init("Empty connection ID parameter");
-static str str_status_too_many_params = str_init("Too many parameters");
-static str str_status_bad_param = str_init("Bad connection ID parameter");
+/* RPC command status text */
 static str str_status_error_closing = str_init("Error closing connection");
 static str str_status_error_sending = str_init("Error sending frame");
-static str str_status_string_error = str_init("Error converting string to int");
 
 static int ws_send_crlf(ws_connection_t *wsc, int opcode);
 




More information about the sr-dev mailing list