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:
parent
b614069e66
commit
819c605bfc
|
@ -73,7 +73,6 @@ int main(int argc, char **argv)
|
|||
const char *ofile = NULL;
|
||||
FILE *in = NULL;
|
||||
FILE *out = NULL;
|
||||
int outfd = -1;
|
||||
|
||||
// ignore sigpipe so we can check the return code of write, and potentially
|
||||
// return a more helpful error message
|
||||
|
@ -159,12 +158,6 @@ exit:
|
|||
if (out != NULL) {
|
||||
fclose(out);
|
||||
}
|
||||
if (outfd != -1) {
|
||||
close(outfd);
|
||||
if (rc != 0) {
|
||||
unlink(argv[2]);
|
||||
}
|
||||
}
|
||||
sepol_module_package_free(mod_pkg);
|
||||
|
||||
return rc;
|
||||
|
|
Loading…
Reference in New Issue