int FAST_FUNC obscure(const char *old, const char *newval, const struct passwd *pw) { const char *msg; msg = obscure_msg(old, newval, pw); if (msg) { printf("Bad password: %s\n", msg); return 1; } return 0; }
int obscure(const char *old, const char *newval, const struct passwd *pwdp) { const char *msg = obscure_msg(old, newval, pwdp); /* if (msg) { */ if (msg != NULL) { printf("Bad password: %s.\n", msg); /* return 0; */ return 1; } /* return 1; */ return 0; }