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)
This commit is contained in:
Kelvin M. Klann 2023-08-12 03:32:21 -03:00
parent 009434f922
commit 2300980849
3 changed files with 3 additions and 3 deletions

View file

@ -368,7 +368,7 @@ scan-build: clean
.PHONY: codespell
codespell: clean
codespell --ignore-regex "UE|creat|doas|shotcut|ether" src test
codespell --ignore-regex "UE|creat|doas|ether|isplay|shotcut" src test
.PHONY: print-env
print-env:

View file

@ -185,7 +185,7 @@ static int procevent_netlink_setup(void) {
if (getsockopt(sock, SOL_SOCKET, SO_RCVBUF, &bsize, &blen) == -1)
fprintf(stderr, "Error: cannot read rx buffer size\n");
else
printf("rx buffer size %d\n", bsize / 2); // the value returned is duble the real one, see man 7 socket
printf("rx buffer size %d\n", bsize / 2); // the value returned is double the real one, see man 7 socket
}
// send monitoring message

View file

@ -27,7 +27,7 @@
static char *arg_log = NULL;
// only 0 or negative values; postive values as defiend in RFCsq
// only 0 or negative values; positive values as defined in RFC
#define PROTOCOL_ICMP 0
#define PROTOCOL_SSH -1