diff options
author | 2019-02-05 22:19:44 +0100 | |
---|---|---|
committer | 2019-02-05 22:19:44 +0100 | |
commit | 68306a2009350c8e1e64971e06f15ae1f62e5de8 (patch) | |
tree | b58ec4d17ab2ad802b1d5b93a4164ef9e51f877e /src | |
parent | move usage check to single place (diff) | |
download | firejail-68306a2009350c8e1e64971e06f15ae1f62e5de8.tar.gz firejail-68306a2009350c8e1e64971e06f15ae1f62e5de8.tar.zst firejail-68306a2009350c8e1e64971e06f15ae1f62e5de8.zip |
cnt only used for debugging
Diffstat (limited to 'src')
-rw-r--r-- | src/libtracelog/libtracelog.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libtracelog/libtracelog.c b/src/libtracelog/libtracelog.c index 0f8d5a00d..3e74051f8 100644 --- a/src/libtracelog/libtracelog.c +++ b/src/libtracelog/libtracelog.c | |||
@@ -181,7 +181,9 @@ static void load_blacklist(void) { | |||
181 | 181 | ||
182 | // extract blacklists | 182 | // extract blacklists |
183 | char buf[MAXBUF]; | 183 | char buf[MAXBUF]; |
184 | #ifdef DEBUG | ||
184 | int cnt = 0; | 185 | int cnt = 0; |
186 | #endif | ||
185 | while (fgets(buf, MAXBUF, fp)) { | 187 | while (fgets(buf, MAXBUF, fp)) { |
186 | if (strncmp(buf, "sandbox pid: ", 13) == 0) { | 188 | if (strncmp(buf, "sandbox pid: ", 13) == 0) { |
187 | char *ptr = strchr(buf, '\n'); | 189 | char *ptr = strchr(buf, '\n'); |
@@ -202,7 +204,9 @@ static void load_blacklist(void) { | |||
202 | if (ptr) | 204 | if (ptr) |
203 | *ptr = '\0'; | 205 | *ptr = '\0'; |
204 | storage_add(buf + 10); | 206 | storage_add(buf + 10); |
207 | #ifdef DEBUG | ||
205 | cnt++; | 208 | cnt++; |
209 | #endif | ||
206 | } | 210 | } |
207 | } | 211 | } |
208 | fclose(fp); | 212 | fclose(fp); |