From bf7c4e914bc25774ad340fb692c98704bbfb4981 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Tue, 26 Aug 2014 20:42:28 +0200 Subject: [PATCH] Fix compiler warning --- klgd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klgd.c b/klgd.c index 0f4affa..af3d59e 100644 --- a/klgd.c +++ b/klgd.c @@ -290,7 +290,7 @@ struct klgd_command * klgd_make_command(const char * const bytes, const size_t l if (!cmd) return NULL; - *(char **)(&cmd->bytes) = bytes; + *(const char **)(&cmd->bytes) = bytes; cmd->length = length; return cmd; -- 2.43.5