aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-12 03:32:21 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2023-08-12 03:36:53 -0300
commit23009808495243a08223a2c50397b01fa80ca115 (patch)
tree86a505750f085856b32bc232d272ea6c26081ce9
parentsmall nettrace update (diff)
downloadfirejail-23009808495243a08223a2c50397b01fa80ca115.tar.gz
firejail-23009808495243a08223a2c50397b01fa80ca115.tar.zst
firejail-23009808495243a08223a2c50397b01fa80ca115.zip
build: fix codespell errors
This fixes the following errors: $ make codespell [...] codespell --ignore-regex "UE|creat|doas|shotcut|ether" src test src/firemon/procevent.c:188: duble ==> double src/fnettrace/main.c:30: postive ==> positive src/fnettrace/main.c:30: defiend ==> defined src/fnettrace/main.c:482: isplay ==> display make: *** [Makefile:371: codespell] Error 65 $ codespell --version 2.2.5 Added in the following commits: * bef5d86a1 ("increase socket buffer size for firemon, bug #2700", 2019-09-29) * c4962789f ("nettrace stats", 2023-08-08)
-rw-r--r--Makefile2
-rw-r--r--src/firemon/procevent.c2
-rw-r--r--src/fnettrace/main.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 3055e226a..e3e0ad551 100644
--- a/Makefile
+++ b/Makefile
@@ -368,7 +368,7 @@ scan-build: clean
368 368
369.PHONY: codespell 369.PHONY: codespell
370codespell: clean 370codespell: clean
371 codespell --ignore-regex "UE|creat|doas|shotcut|ether" src test 371 codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" src test
372 372
373.PHONY: print-env 373.PHONY: print-env
374print-env: 374print-env:
diff --git a/src/firemon/procevent.c b/src/firemon/procevent.c
index 77739c1f3..63d69d1cd 100644
--- a/src/firemon/procevent.c
+++ b/src/firemon/procevent.c
@@ -185,7 +185,7 @@ static int procevent_netlink_setup(void) {
185 if (getsockopt(sock, SOL_SOCKET, SO_RCVBUF, &bsize, &blen) == -1) 185 if (getsockopt(sock, SOL_SOCKET, SO_RCVBUF, &bsize, &blen) == -1)
186 fprintf(stderr, "Error: cannot read rx buffer size\n"); 186 fprintf(stderr, "Error: cannot read rx buffer size\n");
187 else 187 else
188 printf("rx buffer size %d\n", bsize / 2); // the value returned is duble the real one, see man 7 socket 188 printf("rx buffer size %d\n", bsize / 2); // the value returned is double the real one, see man 7 socket
189 } 189 }
190 190
191 // send monitoring message 191 // send monitoring message
diff --git a/src/fnettrace/main.c b/src/fnettrace/main.c
index a1e46f307..5a0b97e89 100644
--- a/src/fnettrace/main.c
+++ b/src/fnettrace/main.c
@@ -27,7 +27,7 @@
27 27
28static char *arg_log = NULL; 28static char *arg_log = NULL;
29 29
30// only 0 or negative values; postive values as defiend in RFCsq 30// only 0 or negative values; positive values as defined in RFC
31#define PROTOCOL_ICMP 0 31#define PROTOCOL_ICMP 0
32#define PROTOCOL_SSH -1 32#define PROTOCOL_SSH -1
33 33