pespin submitted this change.
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
transceiver: make control command parsing arguments const
Change-Id: I2f3aa5363c337791451a388f394d7351d3183908
---
M Transceiver52M/Transceiver.cpp
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Transceiver52M/Transceiver.cpp b/Transceiver52M/Transceiver.cpp
index f5ddd9b..fa66625 100644
--- a/Transceiver52M/Transceiver.cpp
+++ b/Transceiver52M/Transceiver.cpp
@@ -828,8 +828,8 @@
* @param params pointer to arguments, or NULL
* @return true if command matches, otherwise false
*/
-static bool match_cmd(char *buf,
- const char *cmd, char **params)
+static bool match_cmd(const char *buf,
+ const char *cmd, const char **params)
{
size_t cmd_len = strlen(cmd);
@@ -900,7 +900,7 @@
ctrl_msg cmd_to_send;
char *buffer = cmd_received.data;
char *response = cmd_to_send.data;
- char *command, *params;
+ const char *command, *params;
int msgLen;
ctrl_sock_state& s = mCtrlSockets[chan];
To view, visit change 42420. To unsubscribe, or for help writing mail filters, visit settings.