From 8eee5d03fdad63d60003365eab3e8c2fe7b042b3 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 25 Apr 2020 12:10:39 +0200 Subject: [PATCH 1/2] Remove unused variable 'cpp' --- lib/sgetspent.c | 1 - lib/shadow.c | 1 - 2 files changed, 2 deletions(-) diff --git a/lib/sgetspent.c b/lib/sgetspent.c index 20531eba..8251a561 100644 --- a/lib/sgetspent.c +++ b/lib/sgetspent.c @@ -52,7 +52,6 @@ struct spwd *sgetspent (const char *string) static struct spwd spwd; char *fields[FIELDS]; char *cp; - char *cpp; int i; /* diff --git a/lib/shadow.c b/lib/shadow.c index 05cb0e4a..08d2c94c 100644 --- a/lib/shadow.c +++ b/lib/shadow.c @@ -130,7 +130,6 @@ static struct spwd *my_sgetspent (const char *string) static struct spwd spwd; char *fields[FIELDS]; char *cp; - char *cpp; int i; /* From 992c1723af68ee5895d2b58f8db5b4c27d982db8 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Sat, 25 Apr 2020 12:23:10 +0200 Subject: [PATCH 2/2] Remove unused 'buf' in shadow.c --- lib/shadow.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/shadow.c b/lib/shadow.c index 08d2c94c..e743b2ce 100644 --- a/lib/shadow.c +++ b/lib/shadow.c @@ -388,7 +388,6 @@ struct spwd *getspent (void) #ifdef USE_NIS int nis_1_user = 0; struct spwd *val; - char buf[BUFSIZ]; #endif if (NULL == shadow) { setspent (); @@ -483,7 +482,6 @@ struct spwd *getspnam (const char *name) struct spwd *sp; #ifdef USE_NIS - char buf[BUFSIZ]; static char save_name[16]; bool nis_disabled = false; #endif