fix client build

Wed, 10 Dec 2025 21:22:57 +0100

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Wed, 10 Dec 2025 21:22:57 +0100
changeset 983
1d7d24147961
parent 982
9102a53c5385
child 984
2cf5e6d55013

fix client build

client/uiclient.c file | annotate | diff | comparison | revisions
client/uiclient.h file | annotate | diff | comparison | revisions
--- a/client/uiclient.c	Wed Dec 10 19:04:46 2025 +0100
+++ b/client/uiclient.c	Wed Dec 10 21:22:57 2025 +0100
@@ -83,7 +83,7 @@
 /*
  * This message callback is executed in the message handler input thread
  */
-void client_msg_received(cxmutstr msg) {
+void client_msg_received(cxstring msg) {
     // parse message
     CxJson json;
     cxJsonInit(&json, NULL);
@@ -182,7 +182,7 @@
     if(!obj_id.ptr) {
         return 1;
     }
-    if(!id) {
+    if(!id.ptr) {
         return 1;
     }
     
--- a/client/uiclient.h	Wed Dec 10 19:04:46 2025 +0100
+++ b/client/uiclient.h	Wed Dec 10 21:22:57 2025 +0100
@@ -48,7 +48,7 @@
     
 void client_init(UiMessageHandler *handler);
     
-void client_msg_received(cxmutstr msg);
+void client_msg_received(cxstring msg);
 
 int client_handle_json(UiObject *obj, const CxJsonValue *value);
 

mercurial