]> Devoid-pointer.net GitWeb - KLGD.git/commitdiff
Fix compiler warning
authorMichal Malý <madcatxster@devoid-pointer.net>
Tue, 26 Aug 2014 18:42:28 +0000 (20:42 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Tue, 26 Aug 2014 18:42:28 +0000 (20:42 +0200)
klgd.c

diff --git a/klgd.c b/klgd.c
index 0f4affa194e7c48350e2331cc82a1bd537fe9b42..af3d59e474188c1fc56498f45eced1afc54354ca 100644 (file)
--- 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;