comparison svr-auth.c @ 852:7540c0822374 ecc

Various cleanups and fixes for warnings
author Matt Johnston <matt@ucc.asn.au>
date Tue, 12 Nov 2013 23:02:32 +0800
parents 4095b6d7c9fc
children 220f55d540ae
comparison
equal deleted inserted replaced
851:c1c1b43f78c2 852:7540c0822374
229 * returns DROPBEAR_SUCCESS on valid username, DROPBEAR_FAILURE on failure */ 229 * returns DROPBEAR_SUCCESS on valid username, DROPBEAR_FAILURE on failure */
230 static int checkusername(unsigned char *username, unsigned int userlen) { 230 static int checkusername(unsigned char *username, unsigned int userlen) {
231 231
232 char* listshell = NULL; 232 char* listshell = NULL;
233 char* usershell = NULL; 233 char* usershell = NULL;
234 int uid; 234 uid_t uid;
235 TRACE(("enter checkusername")) 235 TRACE(("enter checkusername"))
236 if (userlen > MAX_USERNAME_LEN) { 236 if (userlen > MAX_USERNAME_LEN) {
237 return DROPBEAR_FAILURE; 237 return DROPBEAR_FAILURE;
238 } 238 }
239 239