]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - host_cmd.c
fix almost all g++ -pedantic warnings
[xonotic/darkplaces.git] / host_cmd.c
index 530cf4e4858dfc9bbb2555a89ae72c4b11eabf01..3f9c56e864054bef906260d100e44593fd985d63 100644 (file)
@@ -1937,7 +1937,7 @@ Kicks a user off of the server
 */
 void Host_Kick_f (void)
 {
-       char *who;
+       const char *who;
        const char *message = NULL;
        client_t *save;
        int i;
@@ -2491,7 +2491,7 @@ void Host_PQRcon_f (void)
                SZ_Clear(&net_message);
                MSG_WriteLong (&net_message, 0);
                MSG_WriteByte (&net_message, CCREQ_RCON);
-               SZ_Write(&net_message, (void*)rcon_password.string, n);
+               SZ_Write(&net_message, (const unsigned char*)rcon_password.string, n);
                MSG_WriteByte (&net_message, 0); // terminate the (possibly partial) string
                MSG_WriteString (&net_message, Cmd_Args());
                StoreBigLong(net_message.data, NETFLAG_CTL | (net_message.cursize & NETFLAG_LENGTH_MASK));