Fix some warnings.

This commit is contained in:
JD Horelick 2011-01-19 15:59:30 -05:00
parent 44e6a470d6
commit 2f24d19944
2 changed files with 4 additions and 4 deletions

View 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" : "");
}

View 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;
}