minor source fixes

This commit is contained in:
bol-van 2021-12-03 23:01:49 +03:00
parent 37d2cf5989
commit 600473dd25
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ static int nfq_cb(struct nfq_q_handle *qh, struct nfgenmsg *nfmsg,
uint32_t mark = nfq_get_nfmark(nfa); uint32_t mark = nfq_get_nfmark(nfa);
len = nfq_get_payload(nfa, &data); len = nfq_get_payload(nfa, &data);
DLOG("packet: id=%d len=%zu\n", id, len) DLOG("packet: id=%d len=%d\n", id, len)
if (len >= 0) if (len >= 0)
{ {
switch (processPacketData(data, len, &mark)) switch (processPacketData(data, len, &mark))

View File

@ -40,7 +40,7 @@ int getmaxcap()
FILE *F = fopen("/proc/sys/kernel/cap_last_cap", "r"); FILE *F = fopen("/proc/sys/kernel/cap_last_cap", "r");
if (F) if (F)
{ {
fscanf(F, "%d", &maxcap); int n = fscanf(F, "%d", &maxcap);
fclose(F); fclose(F);
} }
return maxcap; return maxcap;