profiling: fix shadow error

Local variable store was shadowing variable in function
definition.
pull/2447/head
Jason Ish 9 years ago committed by Victor Julien
parent abbc0f76eb
commit 92885d6960

@ -1117,7 +1117,7 @@ static inline void SCProfilingUpdatePacketGenericRecord(PktProfilingData *pdt,
}
static void SCProfilingUpdatePacketGenericRecords(Packet *p, PktProfilingData *pd,
struct ProfileProtoRecords *store, int size)
struct ProfileProtoRecords *records, int size)
{
int i;
for (i = 0; i < size; i++) {
@ -1127,7 +1127,7 @@ static void SCProfilingUpdatePacketGenericRecords(Packet *p, PktProfilingData *p
continue;
}
struct ProfileProtoRecords *r = &store[i];
struct ProfileProtoRecords *r = &records[i];
SCProfilePacketData *store = NULL;
if (PKT_IS_IPV4(p)) {

Loading…
Cancel
Save