mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
Fix indentation in usr.bin/diff/pr.c
In commit6fa5bf0832the pr(1) related code in diff was moved around, but some part of the indentation was messed up, and one line was duplicated. Remove the duplicated line, and fix up the indentation. Reviewed by: bapt MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D34398 (cherry picked from commitf7d6e97e4b)
This commit is contained in:
1 parent
759880b587
commit
9dc5a4c9fb
1 file changed
+12
-13
+12
-13
@@ -81,19 +81,18 @@ start_pr(char *file1, char *file2)
|
||||
pr->ostdout = dup(STDOUT_FILENO);
|
||||
dup2(pfd[1], STDOUT_FILENO);
|
||||
close(pfd[1]);
|
||||
close(pfd[1]);
|
||||
}
|
||||
close(pfd[0]);
|
||||
rewind(stdout);
|
||||
free(header);
|
||||
pr->kq = kqueue();
|
||||
if (pr->kq == -1)
|
||||
err(2, "kqueue");
|
||||
pr->e = xmalloc(sizeof(struct kevent));
|
||||
EV_SET(pr->e, pr_pd, EVFILT_PROCDESC, EV_ADD, NOTE_EXIT, 0,
|
||||
NULL);
|
||||
if (kevent(pr->kq, pr->e, 1, NULL, 0, NULL) == -1)
|
||||
err(2, "kevent");
|
||||
}
|
||||
close(pfd[0]);
|
||||
rewind(stdout);
|
||||
free(header);
|
||||
pr->kq = kqueue();
|
||||
if (pr->kq == -1)
|
||||
err(2, "kqueue");
|
||||
pr->e = xmalloc(sizeof(struct kevent));
|
||||
EV_SET(pr->e, pr_pd, EVFILT_PROCDESC, EV_ADD, NOTE_EXIT, 0,
|
||||
NULL);
|
||||
if (kevent(pr->kq, pr->e, 1, NULL, 0, NULL) == -1)
|
||||
err(2, "kevent");
|
||||
}
|
||||
return (pr);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user