]> git.meshlink.io Git - meshlink/blobdiff - src/control.c
Always pass request strings to other functions as const char *.
[meshlink] / src / control.c
index d074ebbafa7005bca163de4ff1460124ca2f5fda..956d6ee10bd066174c4ef406ec8d71020b31de9d 100644 (file)
@@ -44,7 +44,7 @@ static bool control_ok(connection_t *c, int type) {
        return control_return(c, type, 0);
 }
 
-bool control_h(connection_t *c, char *request) {
+bool control_h(connection_t *c, const char *request) {
        int type;
 
        if(!c->status.control || c->allow_request != CONTROL) {