Module: kamailio
Branch: master
Commit: e656ed7400e735ec867875d20b9ae117af7001b5
URL: 
https://github.com/kamailio/kamailio/commit/e656ed7400e735ec867875d20b9ae117af7001b5

Author: James Aimonetti <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2020-01-08T09:37:00+01:00

core: explicitly cast void* to char* in shm_char_dup()

- fix gcc 9.2 warning
- GH #2191

---

Modified: src/core/ut.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/e656ed7400e735ec867875d20b9ae117af7001b5.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e656ed7400e735ec867875d20b9ae117af7001b5.patch

---

diff --git a/src/core/ut.h b/src/core/ut.h
index a841449164..56c1f9e157 100644
--- a/src/core/ut.h
+++ b/src/core/ut.h
@@ -808,7 +808,7 @@ static inline char* shm_char_dup(const char *src)
        }
 
        len = strlen(src) + 1;
-       rval = shm_malloc(len);
+       rval = (char*)shm_malloc(len);
        if (!rval) {
                SHM_MEM_ERROR;
                return NULL;


_______________________________________________
Kamailio (SER) - Development Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to