]> jfr.im git - irc/rqf/shadowircd.git/commitdiff
Fix some warnings.
authorJD Horelick <redacted>
Wed, 19 Jan 2011 20:59:30 +0000 (15:59 -0500)
committerJD Horelick <redacted>
Wed, 19 Jan 2011 20:59:30 +0000 (15:59 -0500)
src/chmode.c
src/supported.c

index 373a20e8a608646d53064c6e0cf261468aae3fd0..00a0c26cbb0ec515fc7e1cc5e51684d8d1a664a6 100644 (file)
@@ -152,8 +152,8 @@ construct_cflag_param_string(void)
                        ConfigChannel.use_except ? "e" : "",
                        ConfigChannel.use_forward ? "f" : "",
                        ConfigChannel.use_halfop ? "h" : "",
-                       strchr(ConfigChannel.disabledmodes, "j") ? "" : "j",
-                       strchr(ConfigChannel.disabledmodes, "q") ? "" : "q",
+                       strchr(ConfigChannel.disabledmodes, 'j') ? "" : "j",
+                       strchr(ConfigChannel.disabledmodes, 'q') ? "" : "q",
                        ConfigChannel.use_invex ? "I" : "");
 }
 
index 246ff511aea3bc9d7d93de0612af8367e2eff3f5..84ec34a1c09bf3001e7d42e43b1c5888d4fe9736 100644 (file)
@@ -230,9 +230,9 @@ isupport_chanmodes(const void *ptr)
        rb_snprintf(result, sizeof result, "%s%sb%s,k,%sl%s,%s",
                        ConfigChannel.use_except ? "e" : "",
                        ConfigChannel.use_invex ? "I" : "",
-                       strchr(ConfigChannel.disabledmodes, "q") ? "" : "q",
+                       strchr(ConfigChannel.disabledmodes, 'q') ? "" : "q",
                        ConfigChannel.use_forward ? "f" : "",
-                       strchr(ConfigChannel.disabledmodes, "j") ? "" : "j",
+                       strchr(ConfigChannel.disabledmodes, 'j') ? "" : "j",
                        cflagsbuf);
        return result;
 }