mark parameters const

This commit is contained in:
Michael Stapelberg
2011-11-10 19:17:36 +00:00
parent e73538a56f
commit ed66a30410
5 changed files with 26 additions and 26 deletions

View File

@ -26,7 +26,7 @@ struct callback_params {
};
DRAGGING_CB(resize_callback) {
struct callback_params *params = extra;
const struct callback_params *params = extra;
Con *output = params->output;
DLOG("new x = %d, y = %d\n", new_x, new_y);
if (params->orientation == HORIZ) {
@ -49,7 +49,7 @@ DRAGGING_CB(resize_callback) {
xcb_flush(conn);
}
int resize_graphical_handler(Con *first, Con *second, orientation_t orientation, xcb_button_press_event_t *event) {
int resize_graphical_handler(Con *first, Con *second, orientation_t orientation, const xcb_button_press_event_t *event) {
DLOG("resize handler\n");
uint32_t new_position;
@ -98,7 +98,7 @@ int resize_graphical_handler(Con *first, Con *second, orientation_t orientation,
xcb_flush(conn);
struct callback_params params = { orientation, output, helpwin, &new_position };
const struct callback_params params = { orientation, output, helpwin, &new_position };
drag_pointer(NULL, event, grabwin, BORDER_TOP, resize_callback, &params);