Re: [PATCH] pwdgrp.c: Removed unused variable

2021-04-28 Thread Gedare Bloom
ok

On Wed, Apr 28, 2021 at 2:25 PM Ryan Long  wrote:
>
> 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.
> *
> --
> 1.8.3.1
>
> ___
> devel mailing list
> devel@rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


[PATCH] pwdgrp.c: Removed unused variable

2021-04-28 Thread Ryan Long
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.
*
-- 
1.8.3.1

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel