more linting (#58)

* const parameter

* fix indentation
This commit is contained in:
François Perrad 2018-02-26 14:31:15 +01:00 committed by Matt Johnston
parent 36ccfd21e7
commit 2e836bb553
4 changed files with 6 additions and 6 deletions

View File

@ -181,7 +181,7 @@ static void cli_session_init(pid_t proxy_cmd_pid) {
}
static void send_msg_service_request(char* servicename) {
static void send_msg_service_request(const char* servicename) {
TRACE(("enter send_msg_service_request: servicename='%s'", servicename))

View File

@ -38,7 +38,7 @@
#include "dbrandom.h"
static void authclear(void);
static int checkusername(char *username, unsigned int userlen);
static int checkusername(const char *username, unsigned int userlen);
/* initialise the first time for a session, resetting all parameters */
void svr_authinitialise() {
@ -263,7 +263,7 @@ static int check_group_membership(gid_t check_gid, const char* username, gid_t u
/* Check that the username exists and isn't disallowed (root), and has a valid shell.
* returns DROPBEAR_SUCCESS on valid username, DROPBEAR_FAILURE on failure */
static int checkusername(char *username, unsigned int userlen) {
static int checkusername(const char *username, unsigned int userlen) {
char* listshell = NULL;
char* usershell = NULL;

View File

@ -30,7 +30,7 @@
#include "ssh.h"
#include "auth.h"
static void send_msg_service_accept(char *name, int len);
static void send_msg_service_accept(const char *name, int len);
/* processes a SSH_MSG_SERVICE_REQUEST, returning 0 if finished,
* 1 if not */
@ -73,7 +73,7 @@ void recv_msg_service_request() {
}
static void send_msg_service_accept(char *name, int len) {
static void send_msg_service_accept(const char *name, int len) {
TRACE(("accepting service %s", name))