mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-30 05:50:53 +03:00
minor source fixes
This commit is contained in:
parent
37d2cf5989
commit
600473dd25
@ -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))
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user