Discussion:
unused variable in init(8)
Jérémie Courrèges-Anglas
2016-02-01 19:05:42 UTC
Permalink
Not needed since rev. 1.55 and the introduction of crypt_checkpass().

ok?

Index: init.c
===================================================================
RCS file: /cvs/src/sbin/init/init.c,v
retrieving revision 1.57
diff -u -p -p -u -r1.57 init.c
--- init.c 23 Dec 2015 02:41:12 -0000 1.57
+++ init.c 1 Feb 2016 17:57:46 -0000
@@ -517,7 +517,7 @@ f_single_user(void)
struct passwd *pp;
static const char banner[] =
"Enter root password, or ^D to go multi-user\n";
- char *clear, *password;
+ char *clear;
#endif

/* Init shell and name */
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
Sebastien Marie
2016-02-02 05:17:11 UTC
Permalink
Post by Jérémie Courrèges-Anglas
Not needed since rev. 1.55 and the introduction of crypt_checkpass().
ok?
I have the same in my tree.
Post by Jérémie Courrèges-Anglas
Index: init.c
===================================================================
RCS file: /cvs/src/sbin/init/init.c,v
retrieving revision 1.57
diff -u -p -p -u -r1.57 init.c
--- init.c 23 Dec 2015 02:41:12 -0000 1.57
+++ init.c 1 Feb 2016 17:57:46 -0000
@@ -517,7 +517,7 @@ f_single_user(void)
struct passwd *pp;
static const char banner[] =
"Enter root password, or ^D to go multi-user\n";
- char *clear, *password;
+ char *clear;
#endif
/* Init shell and name */
--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE
--
Sebastien Marie
Loading...