Commit a29cbf05 authored by Guido Casati's avatar Guido Casati

Cleanup of cast in gNB_DU_name memcpy

parent 46fadda2
......@@ -196,7 +196,7 @@ static void test_f1ap_setup_request(void)
/* gNB_DU_name */
uint8_t *gNB_DU_name = calloc(strlen("OAI DU") + 1, sizeof(uint8_t));
AssertFatal(gNB_DU_name != NULL, "out of memory\n");
memcpy((void *)gNB_DU_name, "OAI DU", strlen("OAI DU") + 1);
memcpy(gNB_DU_name, "OAI DU", strlen("OAI DU") + 1);
/* sys_info */
uint8_t *mib = calloc(3, sizeof(uint8_t));
uint8_t *sib1 = calloc(3, sizeof(uint8_t));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment