mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-02-12 16:51:53 +00:00
fix compilation with GCC12
Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
2ac7b9d408
commit
850a75c182
2 changed files with 1 additions and 11 deletions
|
@ -70,11 +70,6 @@ void *receive_msg(void *args) {
|
|||
continue;
|
||||
}
|
||||
|
||||
// TODO: recv_string is a fixed array. Should test be here?
|
||||
if (recv_string == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strlen(recv_string) <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
@ -93,11 +88,6 @@ void *receive_msg_enc(void *args) {
|
|||
continue;
|
||||
}
|
||||
|
||||
// TODO: recv_string is a fixed array. Should test be here?
|
||||
if (recv_string == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (strlen(recv_string) <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ void* ret = NULL;
|
|||
case DAWN_REALLOC:
|
||||
ret = realloc(ptr, size);
|
||||
if (ret != NULL)
|
||||
dawn_memory_unregister(DAWN_REALLOC, file, line, ptr);
|
||||
dawn_memory_unregister(DAWN_REALLOC, file, line, ret);
|
||||
break;
|
||||
case DAWN_CALLOC:
|
||||
ret = calloc(nmemb, size);
|
||||
|
|
Loading…
Reference in a new issue