policycoreutils/hll/pp: remove unused variable

pp's main() never set outfd to anything else than -1 so there is no
point in closing it.

Signed-off-by: Nicolas Iooss <nicolas.iooss@m4x.org>
This commit is contained in:
Nicolas Iooss 2018-06-03 18:25:41 +02:00 committed by Stephen Smalley
parent b614069e66
commit 819c605bfc
1 changed files with 0 additions and 7 deletions

View File

@ -73,7 +73,6 @@ int main(int argc, char **argv)
const char *ofile = NULL; const char *ofile = NULL;
FILE *in = NULL; FILE *in = NULL;
FILE *out = NULL; FILE *out = NULL;
int outfd = -1;
// ignore sigpipe so we can check the return code of write, and potentially // ignore sigpipe so we can check the return code of write, and potentially
// return a more helpful error message // return a more helpful error message
@ -159,12 +158,6 @@ exit:
if (out != NULL) { if (out != NULL) {
fclose(out); fclose(out);
} }
if (outfd != -1) {
close(outfd);
if (rc != 0) {
unlink(argv[2]);
}
}
sepol_module_package_free(mod_pkg); sepol_module_package_free(mod_pkg);
return rc; return rc;