avoid 'unused variable' warnings

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15289 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2005-05-29 21:44:30 +00:00
parent 6037e01bd0
commit b56ac0785a
2 changed files with 5 additions and 6 deletions

View File

@@ -600,9 +600,9 @@ user(char *name)
else
reply(530, "User %s access denied.", name);
} else {
#ifdef OTP
char ss[256];
#ifdef OTP
if (otp_challenge(&otp_ctx, name, ss, sizeof(ss)) == 0) {
reply(331, "Password %s for %s required.",
ss, name);
@@ -613,9 +613,9 @@ user(char *name)
reply(331, "Password required for %s.", name);
askpasswd = 1;
} else {
char *s;
#ifdef OTP
char *s;
if ((s = otp_error (&otp_ctx)) != NULL)
lreply(530, "OTP: %s", s);
#endif

View File

@@ -14,13 +14,12 @@ RCSID("$Id$");
int
pop_user (POP *p)
{
char ss[256];
strlcpy(p->user, p->pop_parm[1], sizeof(p->user));
if (p->auth_level == AUTH_OTP) {
char *s = NULL;
#ifdef OTP
char ss[256], *s;
if(otp_challenge (&p->otp_ctx, p->user, ss, sizeof(ss)) == 0)
return pop_msg(p, POP_SUCCESS, "Password %s required for %s.",
ss, p->user);