sort: deindent closefile

This commit is contained in:
Baptiste Daroussin 2022-10-13 10:38:12 +02:00
parent 48a53cc484
commit f9d9a7cc4f

View File

@ -574,19 +574,17 @@ openfile(const char *fn, const char *mode)
void
closefile(FILE *f, const char *fn)
{
if (f == NULL) {
;
} else if (f == stdin) {
;
} else if (f == stdout) {
if (f == NULL || f = stdin)
return;
if (f == stdout) {
fflush(f);
} else {
if (file_is_tmp(fn) && compress_program != NULL) {
if(pclose(f)<0)
err(2,NULL);
} else
fclose(f);
return;
}
if (file_is_tmp(fn) && compress_program != NULL) {
if(pclose(f)<0)
err(2,NULL);
} else
fclose(f);
}
/*