diff options
author | Fred Barclay <Fred-Barclay@users.noreply.github.com> | 2017-05-24 14:13:52 -0500 |
---|---|---|
committer | Fred Barclay <Fred-Barclay@users.noreply.github.com> | 2017-05-24 14:13:52 -0500 |
commit | 96c920e166b40bbe50f216e294f2efac154a1cb2 (patch) | |
tree | fa80a34e81863ab897f2f2b8ec4124b10d023516 /src/firemon/seccomp.c | |
parent | remove trailing whitespace from etc/ (diff) | |
download | firejail-96c920e166b40bbe50f216e294f2efac154a1cb2.tar.gz firejail-96c920e166b40bbe50f216e294f2efac154a1cb2.tar.zst firejail-96c920e166b40bbe50f216e294f2efac154a1cb2.zip |
Remove trailing whitespace from src/
Diffstat (limited to 'src/firemon/seccomp.c')
-rw-r--r-- | src/firemon/seccomp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/firemon/seccomp.c b/src/firemon/seccomp.c index e530fa1c3..73d962fc9 100644 --- a/src/firemon/seccomp.c +++ b/src/firemon/seccomp.c | |||
@@ -31,7 +31,7 @@ static void print_seccomp(int pid) { | |||
31 | free(file); | 31 | free(file); |
32 | return; | 32 | return; |
33 | } | 33 | } |
34 | 34 | ||
35 | char buf[MAXBUF]; | 35 | char buf[MAXBUF]; |
36 | while (fgets(buf, MAXBUF, fp)) { | 36 | while (fgets(buf, MAXBUF, fp)) { |
37 | if (strncmp(buf, "Seccomp:", 8) == 0) { | 37 | if (strncmp(buf, "Seccomp:", 8) == 0) { |
@@ -43,10 +43,10 @@ static void print_seccomp(int pid) { | |||
43 | fclose(fp); | 43 | fclose(fp); |
44 | free(file); | 44 | free(file); |
45 | } | 45 | } |
46 | 46 | ||
47 | void seccomp(pid_t pid, int print_procs) { | 47 | void seccomp(pid_t pid, int print_procs) { |
48 | pid_read(pid); // include all processes | 48 | pid_read(pid); // include all processes |
49 | 49 | ||
50 | // print processes | 50 | // print processes |
51 | int i; | 51 | int i; |
52 | for (i = 0; i < max_pids; i++) { | 52 | for (i = 0; i < max_pids; i++) { |
@@ -60,4 +60,3 @@ void seccomp(pid_t pid, int print_procs) { | |||
60 | } | 60 | } |
61 | printf("\n"); | 61 | printf("\n"); |
62 | } | 62 | } |
63 | |||