Home
last modified time | relevance | path

Searched refs:newtable (Results 1 – 2 of 2) sorted by relevance

/freebsd-13.1/contrib/ntp/lib/isc/
H A Dsymtab.c190 eltlist_t *newtable; in grow_table() local
199 newtable = isc_mem_get(symtab->mctx, newsize * sizeof(eltlist_t)); in grow_table()
200 if (newtable == NULL) in grow_table()
204 INIT_LIST(newtable[i]); in grow_table()
216 APPEND(newtable[hv % newsize], elt, link); in grow_table()
223 symtab->table = newtable; in grow_table()
/freebsd-13.1/lib/libc/stdio/
H A Dprintf-pos.c645 enum typeid *newtable; in __grow_type_table() local
656 if ((newtable = malloc(newsize * sizeof(enum typeid))) == NULL) in __grow_type_table()
658 bcopy(oldtable, newtable, oldsize * sizeof(enum typeid)); in __grow_type_table()
660 newtable = reallocarray(oldtable, newsize, sizeof(enum typeid)); in __grow_type_table()
661 if (newtable == NULL) in __grow_type_table()
665 newtable[n] = T_UNUSED; in __grow_type_table()
667 types->table = newtable; in __grow_type_table()