Skip to content

Commit 4dcaef3

Browse files
cast input for socket create
1 parent 640fd1f commit 4dcaef3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/mqttnet.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ static int NetConnect(void *context, const char* host, word16 port,
431431
return MQTT_CODE_ERROR_NETWORK;
432432
#endif
433433
status = nx_tcp_socket_create(sock->ipPtr, &sock->fd,
434-
"MQTT Socket", NX_IP_NORMAL,
434+
(CHAR*)"MQTT Socket", NX_IP_NORMAL,
435435
NX_FRAGMENT_OKAY, NX_IP_TIME_TO_LIVE,
436436
1024, NX_NULL, NX_NULL);
437437
if (status != NX_SUCCESS) {

0 commit comments

Comments
 (0)