switch(type) {
case NFCT_T_NEW:
- ts = calloc(sizeof(struct ct_timestamp), 1);
+ ts = calloc(1, sizeof(struct ct_timestamp));
if (ts == NULL)
return NFCT_CB_CONTINUE;
if (ts)
nfct_copy(ts->ct, ct, NFCT_CP_META);
else {
- ts = calloc(sizeof(struct ct_timestamp), 1);
+ ts = calloc(1, sizeof(struct ct_timestamp));
if (ts == NULL)
return NFCT_CB_CONTINUE;
if (ts)
nfct_copy(ts->ct, ct, NFCT_CP_META);
else {
- ts = calloc(sizeof(struct ct_timestamp), 1);
+ ts = calloc(1, sizeof(struct ct_timestamp));
if (ts == NULL)
return NFCT_CB_CONTINUE;
ts = (struct ct_timestamp *)
hashtable_find(cpi->ct_active, ct, id);
if (ts == NULL) {
- ts = calloc(sizeof(struct ct_timestamp), 1);
+ ts = calloc(1, sizeof(struct ct_timestamp));
if (ts == NULL)
return NFCT_CB_CONTINUE;
if (ts)
nfct_copy(ts->ct, ct, NFCT_CP_META);
else {
- ts = calloc(sizeof(struct ct_timestamp), 1);
+ ts = calloc(1, sizeof(struct ct_timestamp));
if (ts == NULL)
return NFCT_CB_CONTINUE;