Skip to content
Browse files

czmq_prelude.h/safe_malloc(): C++-robustify the signature

silences "deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]"
  • Loading branch information...
1 parent b776c6e commit e228bb10b65ab114abd8278a0c696ac8ca22b75f Michael Haberler committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 include/czmq_prelude.h
View
2 include/czmq_prelude.h
@@ -453,7 +453,7 @@ typedef struct sockaddr_in inaddr_t; // Internet socket address structure
static inline void *
safe_malloc (
size_t size,
- char *file,
+ const char *file,
unsigned line,
const char *func)
{

0 comments on commit e228bb1

Please sign in to comment.
Something went wrong with that request. Please try again.