mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-29 09:44:26 +00:00
Merge pull request #11136 from donaldsharp/stupidity
tests: Use XCALLOC instead of XMALLOC for threads
This commit is contained in:
commit
4f43a04cd1
@ -122,7 +122,7 @@ int main(int argc, char **argv)
|
||||
|
||||
prng = prng_new(0);
|
||||
|
||||
timers = XMALLOC(MTYPE_TMP, SCHEDULE_TIMERS * sizeof(*timers));
|
||||
timers = XCALLOC(MTYPE_TMP, SCHEDULE_TIMERS * sizeof(*timers));
|
||||
|
||||
for (i = 0; i < SCHEDULE_TIMERS; i++) {
|
||||
long interval_msec;
|
||||
@ -159,7 +159,7 @@ int main(int argc, char **argv)
|
||||
* representing the expected "output" of the timers when they
|
||||
* are run. */
|
||||
j = 0;
|
||||
alarms = XMALLOC(MTYPE_TMP, timers_pending * sizeof(*alarms));
|
||||
alarms = XCALLOC(MTYPE_TMP, timers_pending * sizeof(*alarms));
|
||||
for (i = 0; i < SCHEDULE_TIMERS; i++) {
|
||||
if (!timers[i])
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user