diff options
author | 2017-05-24 14:13:52 -0500 | |
---|---|---|
committer | 2017-05-24 14:13:52 -0500 | |
commit | 96c920e166b40bbe50f216e294f2efac154a1cb2 (patch) | |
tree | fa80a34e81863ab897f2f2b8ec4124b10d023516 /src/firejail/protocol.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/firejail/protocol.c')
-rw-r--r-- | src/firejail/protocol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/firejail/protocol.c b/src/firejail/protocol.c index 098c9fb16..9524d6617 100644 --- a/src/firejail/protocol.c +++ b/src/firejail/protocol.c | |||
@@ -34,7 +34,7 @@ void protocol_filter_save(void) { | |||
34 | 34 | ||
35 | void protocol_filter_load(const char *fname) { | 35 | void protocol_filter_load(const char *fname) { |
36 | assert(fname); | 36 | assert(fname); |
37 | 37 | ||
38 | // read protocol filter configuration from PROTOCOL_CFG | 38 | // read protocol filter configuration from PROTOCOL_CFG |
39 | FILE *fp = fopen(fname, "r"); | 39 | FILE *fp = fopen(fname, "r"); |
40 | if (!fp) | 40 | if (!fp) |
@@ -48,7 +48,7 @@ void protocol_filter_load(const char *fname) { | |||
48 | return; | 48 | return; |
49 | } | 49 | } |
50 | fclose(fp); | 50 | fclose(fp); |
51 | 51 | ||
52 | char *ptr = strchr(buf, '\n'); | 52 | char *ptr = strchr(buf, '\n'); |
53 | if (ptr) | 53 | if (ptr) |
54 | *ptr = '\0'; | 54 | *ptr = '\0'; |
@@ -61,7 +61,7 @@ void protocol_filter_load(const char *fname) { | |||
61 | // --protocol.print | 61 | // --protocol.print |
62 | void protocol_print_filter(pid_t pid) { | 62 | void protocol_print_filter(pid_t pid) { |
63 | EUID_ASSERT(); | 63 | EUID_ASSERT(); |
64 | 64 | ||
65 | (void) pid; | 65 | (void) pid; |
66 | #ifdef SYS_socket | 66 | #ifdef SYS_socket |
67 | // if the pid is that of a firejail process, use the pid of the first child process | 67 | // if the pid is that of a firejail process, use the pid of the first child process |
@@ -109,7 +109,7 @@ void protocol_print_filter(pid_t pid) { | |||
109 | #else | 109 | #else |
110 | fwarning("--protocol not supported on this platform\n"); | 110 | fwarning("--protocol not supported on this platform\n"); |
111 | return; | 111 | return; |
112 | #endif | 112 | #endif |
113 | } | 113 | } |
114 | 114 | ||
115 | 115 | ||