X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/00d760f7506c2d5c32ab5abf9f11b3066999f08a..6345e60c392bbf92b3d7ca2bba473f9da5c073ff:/sbr/ruserpass.c diff --git a/sbr/ruserpass.c b/sbr/ruserpass.c index 513fb117..3c0b7179 100644 --- a/sbr/ruserpass.c +++ b/sbr/ruserpass.c @@ -21,8 +21,9 @@ * distribution for complete copyright information. */ -#include -#include +#include "h/mh.h" +#include "error.h" +#include "h/utils.h" #include static FILE *cfile; @@ -64,7 +65,7 @@ static int token(char *); void ruserpass(const char *host, char **aname, char **apass, int flags) { - int t, usedefault = 0; + int t; struct stat stb; init_credentials_file (); @@ -77,10 +78,11 @@ ruserpass(const char *host, char **aname, char **apass, int flags) char tokval[MAX_TOKVAL_SIZE]; tokval[0] = '\0'; + bool usedefault = false; while ((t = token(tokval))) { switch(t) { case DEFAULT: - usedefault = 1; + usedefault = true; /* FALLTHRU */ case MACH: