Re: [PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Samuel Thibault
Hello, Flavio Cruz, on Tue 29 Dec 2015 21:17:25 +0100, wrote: > console-client: Fix compiler warning. > > * console-client/pc-kbd.c (update_leds): Replace mach_msg_type_number_t with > int. Applied, thanks. Unfortunately, I pushed it before realizing that git-am has put the whole mail instead o

Re: [PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Flavio Cruz
On Tue, Dec 29, 2015 at 08:43:24PM +0100, Samuel Thibault wrote: > Flavio Cruz, on Tue 29 Dec 2015 17:35:00 +0100, wrote: > > @@ -663,10 +663,11 @@ update_leds (void) > > | (led_state.num_lock ? 2 : 0) > > | (led_state.caps_lock ? 4 : 0); > > > > - err = device_write_inband (kb

Re: [PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Samuel Thibault
Samuel Thibault, on Tue 29 Dec 2015 20:43:24 +0100, wrote: > Flavio Cruz, on Tue 29 Dec 2015 17:35:00 +0100, wrote: > > @@ -663,10 +663,11 @@ update_leds (void) > > | (led_state.num_lock ? 2 : 0) > > | (led_state.caps_lock ? 4 : 0); > > > > - err = device_write_inband (kbd_dev,

Re: [PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Samuel Thibault
Flavio Cruz, on Tue 29 Dec 2015 17:35:00 +0100, wrote: > @@ -663,10 +663,11 @@ update_leds (void) > | (led_state.num_lock ? 2 : 0) > | (led_state.caps_lock ? 4 : 0); > > - err = device_write_inband (kbd_dev, 0, -1, (void *) leds, 2, > &data_cnt); > + err = device_writ

[PATCH] fix compiler warnings in hurd/console-client

2015-12-29 Thread Flavio Cruz
console-client: Fix several compiler warnings. * console-client/bdf.c: Use size_t instead of int. * console-client/driver.c: Remove unused variable errstring. * console-client/pc-kbd.c: Cast arguments to device_write_inband. Cast sc to scancode_x1 before comparing with enum values. * console-clie