[rtems commit] pwdgrp.c: Removed unused variable

Joel Sherrill joel at rtems.org
Thu Apr 29 14:45:12 UTC 2021


Module:    rtems
Branch:    master
Commit:    a70d60aff70b55a883a855c7f5c964124d9368f8
Changeset: http://git.rtems.org/rtems/commit/?id=a70d60aff70b55a883a855c7f5c964124d9368f8

Author:    Ryan Long <ryan.long at oarcorp.com>
Date:      Wed Apr 28 16:24:54 2021 -0400

pwdgrp.c: Removed unused variable

The 'sc' variable was originally storing the return value of mkdir().
This was causing an issue, so it was changed to make it to where we
ignored the return value with (void). The 'sc' variable was left in
by mistake.

---

 cpukit/libcsupport/src/pwdgrp.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/cpukit/libcsupport/src/pwdgrp.c b/cpukit/libcsupport/src/pwdgrp.c
index aac31f4..d686829 100644
--- a/cpukit/libcsupport/src/pwdgrp.c
+++ b/cpukit/libcsupport/src/pwdgrp.c
@@ -63,8 +63,6 @@ static void init_file(const char *name, const char *content)
  */
 static void pwdgrp_init(void)
 {
-  int sc;
-
   /*
    * Do the best to create this directory.
    *



More information about the vc mailing list