Module Name: src
Committed By: ryo
Date: Sat Oct 7 19:23:02 UTC 2017
Modified Files:
src/libexec/rshd: rshd.c
Log Message:
fix to compile without USE_PAM. (unused variables)
To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/libexec/rshd/rshd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/libexec/rshd/rshd.c
diff -u src/libexec/rshd/rshd.c:1.50 src/libexec/rshd/rshd.c:1.51
--- src/libexec/rshd/rshd.c:1.50 Sat Jul 14 15:06:26 2012
+++ src/libexec/rshd/rshd.c Sat Oct 7 19:23:02 2017
@@ -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, 19
#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[])