From 9f03e9b6d3abf9149359dc0ed4f05d47d24b12ea Mon Sep 17 00:00:00 2001 From: ryo Date: Sat, 7 Oct 2017 19:23:02 +0000 Subject: [PATCH] fix to compile without USE_PAM. (unused variables) --- libexec/rshd/rshd.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c index c2b7643b2ace..8397daa2b0fd 100644 --- a/libexec/rshd/rshd.c +++ b/libexec/rshd/rshd.c @@ -1,4 +1,4 @@ -/* $NetBSD: rshd.c,v 1.50 2012/07/14 15:06:26 darrenr Exp $ */ +/* $NetBSD: rshd.c,v 1.51 2017/10/07 19:23:02 ryo Exp $ */ /* * Copyright (C) 1998 WIDE Project. @@ -69,7 +69,7 @@ __COPYRIGHT("@(#) Copyright (c) 1988, 1989, 1992, 1993, 1994\ #if 0 static char sccsid[] = "@(#)rshd.c 8.2 (Berkeley) 4/6/94"; #else -__RCSID("$NetBSD: rshd.c,v 1.50 2012/07/14 15:06:26 darrenr Exp $"); +__RCSID("$NetBSD: rshd.c,v 1.51 2017/10/07 19:23:02 ryo Exp $"); #endif #endif /* not lint */ @@ -147,7 +147,9 @@ __dead static void usage(void); #define OPTIONS "aLln" extern int __check_rhosts_file; extern char *__rcmd_errstr; /* syslog hook from libc/net/rcmd.c. */ +#ifdef USE_PAM static const char incorrect[] = "Login incorrect."; +#endif int main(int argc, char *argv[])