summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2015-11-09 10:27:41 +0100
committerJakub Hrozek <jhrozek@redhat.com>2015-11-09 15:33:46 +0100
commit09433d9edefcd5e4f4409555c25f8de0a0d4cc40 (patch)
tree7b69f57380eb7e2b0fb2e53ddd55d06000350cae
parent4920fdad33639467b01f5937f0798aab4568b445 (diff)
downloadsssd-misc.zip
sssd-misc.tar.gz
sssd-misc.tar.xz
tools: Don't shadow 'exit'misc
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
-rw-r--r--src/tools/sss_override.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/tools/sss_override.c b/src/tools/sss_override.c
index 7059809..3df3bf8 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,