aboutsummaryrefslogtreecommitdiffstats
path: root/src/fnettrace
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-17 18:25:34 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-02-19 20:57:12 -0300
commit3812c139a6580113572f68ea1a8fd277d410777c (patch)
tree52b196e95a9ef510a1dc4c3648610ecb07cbeadb /src/fnettrace
parentRELNOTES: add build and docs items (diff)
downloadfirejail-3812c139a6580113572f68ea1a8fd277d410777c.tar.gz
firejail-3812c139a6580113572f68ea1a8fd277d410777c.tar.zst
firejail-3812c139a6580113572f68ea1a8fd277d410777c.zip
Fix EOL at EOF
Commands used to search and replace: $ git grep -Ilz '.' | xargs -0 -I '{}' sh -c \ "printf '%s\n' \"\$(cat '{}')\" >'{}'" The above commands ensure that there is exaclty 1 line terminator at EOF (rather than 0 or more than 1) on all non-empty text files. This fixes all of the "new blank line at EOF" errors raised by git: $ git diff --check 4b825dc642cb6eb9a060e54bf8d69288fbee4904..HEAD | grep '^[^+]' | cut -f 3 -d : | LC_ALL=C sort | uniq -c 21 new blank line at EOF. 72 space before tab in indent. 4 trailing whitespace.
Diffstat (limited to 'src/fnettrace')
-rw-r--r--src/fnettrace/fnettrace.h2
-rw-r--r--src/fnettrace/hostnames.c1
-rw-r--r--src/fnettrace/radix.c1
-rw-r--r--src/fnettrace/radix.h2
4 files changed, 2 insertions, 4 deletions
diff --git a/src/fnettrace/fnettrace.h b/src/fnettrace/fnettrace.h
index d3bc6439e..629b8ce5b 100644
--- a/src/fnettrace/fnettrace.h
+++ b/src/fnettrace/fnettrace.h
@@ -70,4 +70,4 @@ char* retrieve_hostname(uint32_t ip);
70// tail.c 70// tail.c
71void tail(const char *logfile); 71void tail(const char *logfile);
72 72
73#endif \ No newline at end of file 73#endif
diff --git a/src/fnettrace/hostnames.c b/src/fnettrace/hostnames.c
index 4f5641dfb..878a67123 100644
--- a/src/fnettrace/hostnames.c
+++ b/src/fnettrace/hostnames.c
@@ -121,4 +121,3 @@ errexit:
121 fprintf(stderr, "Error: invalid line %d in file %s\n", line, fname); 121 fprintf(stderr, "Error: invalid line %d in file %s\n", line, fname);
122 exit(1); 122 exit(1);
123} 123}
124
diff --git a/src/fnettrace/radix.c b/src/fnettrace/radix.c
index 97e890bec..a1d510a61 100644
--- a/src/fnettrace/radix.c
+++ b/src/fnettrace/radix.c
@@ -152,4 +152,3 @@ char *radix_longest_prefix_match(uint32_t ip) {
152 152
153 return (rv)? rv->name: NULL; 153 return (rv)? rv->name: NULL;
154} 154}
155
diff --git a/src/fnettrace/radix.h b/src/fnettrace/radix.h
index 85a75d0d7..d75fe3999 100644
--- a/src/fnettrace/radix.h
+++ b/src/fnettrace/radix.h
@@ -24,4 +24,4 @@ extern int radix_nodes;
24char *radix_longest_prefix_match(uint32_t ip); 24char *radix_longest_prefix_match(uint32_t ip);
25char *radix_add(uint32_t ip, uint32_t mask, char *name); 25char *radix_add(uint32_t ip, uint32_t mask, char *name);
26 26
27#endif \ No newline at end of file 27#endif