Skip to content
Snippets Groups Projects
Commit 79d51ce6 authored by Thomas Laurent's avatar Thomas Laurent
Browse files

reallocarray() doesn't exist in old Ubuntu

parent a432feda
No related branches found
No related tags found
8 merge requests!1757Draft: Use pMAX value in configuration file, instead of hardcoded '23' in asn1_msg.c,!1493fix DL arq errors in UE,!1093Issue in generating NR PRACH for High Speed case,!1074PBCH test case support for non-zero bchpyload,!1038Develop to nfapi_nr_develop,!1035Integration 2021 wk04 b,!1026Integration 2021 wk04,!1006WIP: Itti enhancement
......@@ -340,7 +340,7 @@ extern "C" {
pthread_mutex_lock (&lock_nb_queues);
int newQueue=nb_queues;
nb_queues++;
AssertFatal(reallocarray(tasks, nb_queues, sizeof(*tasks)),"no memory");
AssertFatal(realloc(tasks, nb_queues* sizeof(*tasks)),"no memory");
pthread_mutex_unlock (&lock_nb_queues);
LOG_I(TMR,"Starting itti queue: %s as task %d\n", tasks_info->name, newQueue);
pthread_mutex_init(&tasks[newQueue].queue_cond_lock, NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment