From 600473dd259a6d80a8bda79e8f94bce16ffb1412 Mon Sep 17 00:00:00 2001 From: bol-van Date: Fri, 3 Dec 2021 23:01:49 +0300 Subject: [PATCH] minor source fixes --- nfq/nfqws.c | 2 +- tpws/sec.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nfq/nfqws.c b/nfq/nfqws.c index 276513f..ad25847 100644 --- a/nfq/nfqws.c +++ b/nfq/nfqws.c @@ -175,7 +175,7 @@ static int nfq_cb(struct nfq_q_handle *qh, struct nfgenmsg *nfmsg, uint32_t mark = nfq_get_nfmark(nfa); 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) { switch (processPacketData(data, len, &mark)) diff --git a/tpws/sec.c b/tpws/sec.c index 925e7cb..d452540 100644 --- a/tpws/sec.c +++ b/tpws/sec.c @@ -40,7 +40,7 @@ int getmaxcap() FILE *F = fopen("/proc/sys/kernel/cap_last_cap", "r"); if (F) { - fscanf(F, "%d", &maxcap); + int n = fscanf(F, "%d", &maxcap); fclose(F); } return maxcap;