defrag: pass u64 to ParseU64

Fixes: defrag-config.c:97: warning: passing argument 2 \
       of 'ParseSizeStringU64' from incompatible pointer type
pull/720/head
Victor Julien 11 years ago
parent 12ab6f3ab4
commit 31a94cd4cb

@ -89,23 +89,23 @@ int DefragPolicyGetHostTimeout(Packet *p)
static void DefragParseParameters(ConfNode *n)
{
ConfNode *si;
uintmax_t timeout = 0;
uint64_t timeout = 0;
TAILQ_FOREACH(si, &n->head, next) {
if (strcasecmp("timeout", si->name) == 0) {
SCLogDebug("timeout value %s", si->val);
if (ParseSizeStringU64(si->val, &timeout) < 0) {
SCLogError(SC_ERR_SIZE_PARSE, "Error parsing timeout "
"from conf file");
}
SCLogDebug("timeout value %s", si->val);
if (ParseSizeStringU64(si->val, &timeout) < 0) {
SCLogError(SC_ERR_SIZE_PARSE, "Error parsing timeout "
"from conf file");
}
if (strcasecmp("address", si->name) == 0) {
ConfNode *pval;
TAILQ_FOREACH(pval, &si->head, next) {
DefragPolicyAddHostInfo(pval->val, &timeout);
}
}
if (strcasecmp("address", si->name) == 0) {
ConfNode *pval;
TAILQ_FOREACH(pval, &si->head, next) {
DefragPolicyAddHostInfo(pval->val, &timeout);
}
}
}
}
void DefragSetDefaultTimeout(intmax_t timeout)

Loading…
Cancel
Save