version 1.21, 2014/03/16 18:38:30 |
version 1.22, 2015/10/16 17:56:07 |
|
|
if (member(field, tab)) |
if (member(field, tab)) |
continue; |
continue; |
h = hash(field); |
h = hash(field); |
igp = (struct ignore *)calloc(1, sizeof(struct ignore)); |
igp = calloc(1, sizeof(struct ignore)); |
if (igp == NULL) |
if (igp == NULL) |
errx(1, "Out of memory"); |
err(1, "calloc"); |
igp->i_field = strdup(field); |
igp->i_field = strdup(field); |
if (igp->i_field == NULL) |
if (igp->i_field == NULL) |
errx(1, "Out of memory"); |
err(1, "strdup"); |
igp->i_link = tab->i_head[h]; |
igp->i_link = tab->i_head[h]; |
tab->i_head[h] = igp; |
tab->i_head[h] = igp; |
tab->i_count++; |
tab->i_count++; |