Home
last modified time | relevance | path

Searched refs:num_new (Results 1 – 6 of 6) sorted by relevance

/external/avb/libavb/
Davb_util.c279 size_t num_new; in avb_replace() local
289 num_new = num_before + replace_len + 1; in avb_replace()
290 ret = avb_malloc(num_new); in avb_replace()
296 ret[num_new - 1] = '\0'; in avb_replace()
297 ret_len = num_new - 1; in avb_replace()
300 num_new = ret_len + num_before + replace_len + 1; in avb_replace()
301 new_str = avb_malloc(num_new); in avb_replace()
308 new_str[num_new - 1] = '\0'; in avb_replace()
311 ret_len = num_new - 1; in avb_replace()
325 size_t num_new = ret_len + num_remaining + 1; in avb_replace() local
[all …]
/external/iproute2/tc/
Dm_xt_old.c97 unsigned int num_old, num_new, i; in merge_options() local
100 for (num_new = 0; newopts[num_new].name; num_new++) ; in merge_options()
104 merge = malloc(sizeof (struct option) * (num_new + num_old + 1)); in merge_options()
106 for (i = 0; i < num_new; i++) { in merge_options()
110 memset(merge + num_old + num_new, 0, sizeof (struct option)); in merge_options()
Dm_ipt.c178 unsigned int num_old, num_new, i; in merge_options() local
181 for (num_new = 0; newopts[num_new].name; num_new++) ; in merge_options()
185 merge = malloc(sizeof (struct option) * (num_new + num_old + 1)); in merge_options()
187 for (i = 0; i < num_new; i++) { in merge_options()
191 memset(merge + num_old + num_new, 0, sizeof (struct option)); in merge_options()
/external/iptables/iptables/
Dxtables-eb.c353 unsigned int num_old, num_new, i; in merge_options() local
359 for (num_new = 0; newopts[num_new].name; num_new++); in merge_options()
364 merge = malloc(sizeof(struct option) * (num_new + num_old + 1)); in merge_options()
368 for (i = 0; i < num_new; i++) { in merge_options()
372 memset(merge + num_old + num_new, 0, sizeof(struct option)); in merge_options()
/external/iptables/libxtables/
Dxtoptions.c77 unsigned int num_orig, num_old = 0, num_new, i; in xtables_options_xfrm() local
87 for (num_new = 0; entry[num_new].name != NULL; ++num_new) in xtables_options_xfrm()
97 merge = malloc(sizeof(*mp) * (num_orig + num_old + num_new + 1)); in xtables_options_xfrm()
109 for (i = 0; i < num_new; ++i, ++mp, ++entry) { in xtables_options_xfrm()
Dxtables.c107 unsigned int num_oold = 0, num_old = 0, num_new = 0, i; in xtables_merge_options() local
116 for (num_new = 0; newopts[num_new].name; num_new++) ; in xtables_merge_options()
125 merge = malloc(sizeof(*mp) * (num_oold + num_old + num_new + 1)); in xtables_merge_options()
136 memcpy(mp, newopts, sizeof(*mp) * num_new); in xtables_merge_options()
138 for (i = 0; i < num_new; ++i, ++mp) in xtables_merge_options()