[PATCH] pwdgrp.c: Removed unused variable

Gedare Bloom gedare at rtems.org
Thu Apr 29 00:22:20 UTC 2021


ok

On Wed, Apr 28, 2021 at 2:25 PM Ryan Long <ryan.long at oarcorp.com> 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 at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel


More information about the devel mailing list