imzmq3: fix gcc-7 build warnings

This commit is contained in:
Rainer Gerhards 2017-11-25 10:41:42 +01:00
parent 0704ef2439
commit 9d572f1172

View File

@ -69,13 +69,13 @@ DEFobjCurrIf(ruleset)
* structs to describe sockets * structs to describe sockets
*/ */
typedef struct _socket_type { typedef struct _socket_type {
char* name; const char* name;
int type; int type;
} socket_type; } socket_type;
/* more overkill, but seems nice to be consistent.*/ /* more overkill, but seems nice to be consistent.*/
typedef struct _socket_action { typedef struct _socket_action {
char* name; const char* name;
int action; int action;
} socket_action; } socket_action;
@ -339,7 +339,7 @@ static rsRetVal validateConfig(instanceConf_t* info) {
return RS_RET_OK; return RS_RET_OK;
} }
static rsRetVal createContext() { static rsRetVal createContext(void) {
if (s_context == NULL) { if (s_context == NULL) {
DBGPRINTF("imzmq3: creating zctx..."); DBGPRINTF("imzmq3: creating zctx...");
zsys_handler_set(NULL); zsys_handler_set(NULL);