From: Michal MalĂ˝ Date: Tue, 26 Aug 2014 18:42:28 +0000 (+0200) Subject: Fix compiler warning X-Git-Url: https://gitweb.devoid-pointer.net/?a=commitdiff_plain;h=bf7c4e914bc25774ad340fb692c98704bbfb4981;p=KLGD.git Fix compiler warning --- 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;