Mercurial > dropbear
comparison svr-service.c @ 1538:f20038b513a5
more linting (#58)
* const parameter
* fix indentation
author | François Perrad <francois.perrad@gadz.org> |
---|---|
date | Mon, 26 Feb 2018 14:31:15 +0100 |
parents | aaf576b27a10 |
children |
comparison
equal
deleted
inserted
replaced
1537:6a83b1944432 | 1538:f20038b513a5 |
---|---|
28 #include "session.h" | 28 #include "session.h" |
29 #include "packet.h" | 29 #include "packet.h" |
30 #include "ssh.h" | 30 #include "ssh.h" |
31 #include "auth.h" | 31 #include "auth.h" |
32 | 32 |
33 static void send_msg_service_accept(char *name, int len); | 33 static void send_msg_service_accept(const char *name, int len); |
34 | 34 |
35 /* processes a SSH_MSG_SERVICE_REQUEST, returning 0 if finished, | 35 /* processes a SSH_MSG_SERVICE_REQUEST, returning 0 if finished, |
36 * 1 if not */ | 36 * 1 if not */ |
37 void recv_msg_service_request() { | 37 void recv_msg_service_request() { |
38 | 38 |
71 dropbear_exit("Unrecognised SSH_MSG_SERVICE_REQUEST"); | 71 dropbear_exit("Unrecognised SSH_MSG_SERVICE_REQUEST"); |
72 | 72 |
73 | 73 |
74 } | 74 } |
75 | 75 |
76 static void send_msg_service_accept(char *name, int len) { | 76 static void send_msg_service_accept(const char *name, int len) { |
77 | 77 |
78 TRACE(("accepting service %s", name)) | 78 TRACE(("accepting service %s", name)) |
79 | 79 |
80 CHECKCLEARTOWRITE(); | 80 CHECKCLEARTOWRITE(); |
81 | 81 |