summaryrefslogtreecommitdiff
path: root/src/fruits/cmv
diff options
context:
space:
mode:
Diffstat (limited to 'src/fruits/cmv')
-rw-r--r--src/fruits/cmv/cmv.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/fruits/cmv/cmv.c b/src/fruits/cmv/cmv.c
index 6285c39..e539f01 100644
--- a/src/fruits/cmv/cmv.c
+++ b/src/fruits/cmv/cmv.c
@@ -1,3 +1,4 @@
+#define AL_LOG_SECTION "cmv"
#include <al/log.h>
#include <nnwt/event_loop.h>
#include <nnwt/thread.h>
@@ -124,6 +125,10 @@ s32 window_system_main(s32 argc, str *argv)
#ifndef CAMU_SINK_ONLY
bool local = argc > 1;
+#else
+ if (argc > 1) {
+ warn("Got arguments in a sink-only configuration.");
+ }
#endif
u8 type;
@@ -167,7 +172,6 @@ s32 window_system_main(s32 argc, str *argv)
if (local) {
c.desktop.exit_callback = exit_callback;
c.desktop.userdata = &c;
- c.desktop.sink.local_server = &c.server.data.server;
}
#endif
if (!camu_desktop_connect(&c.desktop, type, &c.loop, &addr, CAMU_PORT)) {
@@ -199,9 +203,6 @@ s32 window_system_main(s32 argc, str *argv)
nn_packet_free(packet);
}
}
-#else
- (void)argc;
- (void)argv;
#endif
struct nn_thread thread0;
@@ -247,7 +248,7 @@ s32 main(s32 argc, char *cargv[])
str arg;
#ifdef NAUNET_ON_WINDOWS
if (!al_str_from_wstr(&arg, &al_wstr_cr(wargv[i]))) {
- al_log_error("cmv", "Failed to parse argument #%i.", i);
+ error("Failed to parse argument #%i.", i);
continue;
}
#else