diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2015-11-09 10:27:41 +0100 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2015-11-10 09:00:11 +0100 |
commit | 3b9a62badec2478f978ac28d2e3b72a7dd16a6e5 (patch) | |
tree | e279747400b64b9e16cfab62e2b2add1bc8f6db7 /src/tools | |
parent | 8d1b572126afceb60693ff4c4a734bd6dbdaf548 (diff) | |
download | sssd-3b9a62badec2478f978ac28d2e3b72a7dd16a6e5.tar.gz sssd-3b9a62badec2478f978ac28d2e3b72a7dd16a6e5.tar.xz sssd-3b9a62badec2478f978ac28d2e3b72a7dd16a6e5.zip |
tools: Don't shadow 'exit'
Fixes:
/sssd/src/tools/sss_override.c: In function ‘override_user_import’:
/sssd/src/tools/sss_override.c:1471: warning: declaration of ‘exit’ shadows a global declaration
/usr/include/stdlib.h:544: warning: shadowed declaration is here
/sssd/src/tools/sss_override.c: In function ‘override_group_import’:
/sssd/src/tools/sss_override.c:1737: warning: declaration of ‘exit’ shadows a global declaration
/usr/include/stdlib.h:544: warning: shadowed declaration is here
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tools')
-rw-r--r-- | src/tools/sss_override.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/src/tools/sss_override.c b/src/tools/sss_override.c index 7059809fe..3eb119195 100644 --- a/src/tools/sss_override.c +++ b/src/tools/sss_override.c @@ -1468,7 +1468,7 @@ static int override_user_import(struct sss_cmdline *cmdline, struct override_user obj; int linenum = 1; errno_t ret; - int exit; + int rc; tmp_ctx = talloc_new(NULL); if (tmp_ctx == NULL) { @@ -1493,14 +1493,14 @@ static int override_user_import(struct sss_cmdline *cmdline, ret = parse_cmdline_import(cmdline, &filename); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, "Unable to parse command line.\n"); - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } db = sss_colondb_open(tool_ctx, SSS_COLONDB_READ, filename); if (db == NULL) { fprintf(stderr, _("Unable to open %s.\n"), filename); - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } @@ -1511,19 +1511,19 @@ static int override_user_import(struct sss_cmdline *cmdline, &obj.orig_name, &obj.domain); if (ret != EOK) { fprintf(stderr, _("Unable to parse name %s.\n"), obj.input_name); - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } ret = get_user_domain_msg(tool_ctx, &obj); if (ret != EOK) { - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } ret = override_user(tool_ctx, &obj); if (ret != EOK) { - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } @@ -1533,15 +1533,15 @@ static int override_user_import(struct sss_cmdline *cmdline, if (ret != EOF) { fprintf(stderr, _("Invalid format on line %d. " "Use --debug option for more information.\n"), linenum); - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } - exit = EXIT_SUCCESS; + rc = EXIT_SUCCESS; done: talloc_free(tmp_ctx); - return exit; + return rc; } static int override_user_export(struct sss_cmdline *cmdline, @@ -1734,7 +1734,7 @@ static int override_group_import(struct sss_cmdline *cmdline, struct override_group obj; int linenum = 1; errno_t ret; - int exit; + int rc; tmp_ctx = talloc_new(NULL); if (tmp_ctx == NULL) { @@ -1755,14 +1755,14 @@ static int override_group_import(struct sss_cmdline *cmdline, ret = parse_cmdline_import(cmdline, &filename); if (ret != EOK) { DEBUG(SSSDBG_CRIT_FAILURE, "Unable to parse command line.\n"); - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } db = sss_colondb_open(tool_ctx, SSS_COLONDB_READ, filename); if (db == NULL) { fprintf(stderr, _("Unable to open %s.\n"), filename); - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } @@ -1773,19 +1773,19 @@ static int override_group_import(struct sss_cmdline *cmdline, &obj.orig_name, &obj.domain); if (ret != EOK) { fprintf(stderr, _("Unable to parse name %s.\n"), obj.input_name); - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } ret = get_group_domain_msg(tool_ctx, &obj); if (ret != EOK) { - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } ret = override_group(tool_ctx, &obj); if (ret != EOK) { - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } @@ -1795,15 +1795,15 @@ static int override_group_import(struct sss_cmdline *cmdline, if (ret != EOF) { fprintf(stderr, _("Invalid format on line %d. " "Use --debug option for more information.\n"), linenum); - exit = EXIT_FAILURE; + rc = EXIT_FAILURE; goto done; } - exit = EXIT_SUCCESS; + rc = EXIT_SUCCESS; done: talloc_free(tmp_ctx); - return exit; + return rc; } static int override_group_export(struct sss_cmdline *cmdline, |