/external/avb/libavb/ |
avb_util.c | 279 size_t num_new; local 289 num_new = num_before + replace_len + 1; 290 ret = avb_malloc(num_new); 296 ret[num_new - 1] = '\0'; 297 ret_len = num_new - 1; 300 num_new = ret_len + num_before + replace_len + 1; 301 new_str = avb_malloc(num_new); 308 new_str[num_new - 1] = '\0'; 311 ret_len = num_new - 1; 325 size_t num_new = ret_len + num_remaining + 1 local [all...] |
/external/iproute2/tc/ |
m_xt_old.c | 97 unsigned int num_old, num_new, i; local 100 for (num_new = 0; newopts[num_new].name; num_new++) ; 104 merge = malloc(sizeof (struct option) * (num_new + num_old + 1)); 106 for (i = 0; i < num_new; i++) { 110 memset(merge + num_old + num_new, 0, sizeof (struct option));
|
m_ipt.c | 178 unsigned int num_old, num_new, i; local 181 for (num_new = 0; newopts[num_new].name; num_new++) ; 185 merge = malloc(sizeof (struct option) * (num_new + num_old + 1)); 187 for (i = 0; i < num_new; i++) { 191 memset(merge + num_old + num_new, 0, sizeof (struct option));
|
/external/iptables/iptables/ |
xtables-eb.c | 353 unsigned int num_old, num_new, i; local 359 for (num_new = 0; newopts[num_new].name; num_new++); 364 merge = malloc(sizeof(struct option) * (num_new + num_old + 1)); 368 for (i = 0; i < num_new; i++) { 372 memset(merge + num_old + num_new, 0, sizeof(struct option)); [all...] |
/external/iptables/libxtables/ |
xtoptions.c | 77 unsigned int num_orig, num_old = 0, num_new, i; local 87 for (num_new = 0; entry[num_new].name != NULL; ++num_new) 97 merge = malloc(sizeof(*mp) * (num_orig + num_old + num_new + 1)); 109 for (i = 0; i < num_new; ++i, ++mp, ++entry) { [all...] |
xtables.c | 107 unsigned int num_oold = 0, num_old = 0, num_new = 0, i; local 116 for (num_new = 0; newopts[num_new].name; num_new++) ; 125 merge = malloc(sizeof(*mp) * (num_oold + num_old + num_new + 1)); 136 memcpy(mp, newopts, sizeof(*mp) * num_new); 138 for (i = 0; i < num_new; ++i, ++mp) [all...] |