Re: [PATCH libinput] touchpad: reduce middle button size on Dell touchpads to 10mm

2016-07-12 Thread Yong Bakos
On Jul 12, 2016, at 4:51 PM, Peter Hutterer wrote: > > All Dell touchpas appear to have a visual marker on their touchpads. With a > visible marker our middle button can (and should) be much smaller since we > can rely on users to hit the button precisely. > > https://bugs.freedesktop.org/show_b

[PATCH weston 0/3] Standardize error checking for strtol calls

2016-07-12 Thread Bryce Harrington
Make error handling of most strtol calls consistent with each other. The first patch fixes various cases that are straightforward refactors. The second and third patch cover cases where some idiosyncracies need highlighted in the commit messages. All three patches can be squashed if desired. Not

[PATCH weston 3/3] option-parser: Improve error checking for strtol call

2016-07-12 Thread Bryce Harrington
Make the error checking consistent with other strtol() calls. Note that since strtol(nptr, &endptr) sets endptr == nptr if there were no digits, this catches the case where the string was blank, so there's no need to test *value != '\0'. Signed-off-by: Bryce Harrington --- shared/option-parser.

[PATCH weston 2/3] xwayland: Improve error checking for strtol call

2016-07-12 Thread Bryce Harrington
This updates the error checking for the strtol() call in xwayland's create_lockfile to match other cases. C.f. cbc05378 and other recent patches. A notable difference here is that the existing error checking was verifying that exactly 10 digits were being read from the lock file, but the fact tha

[PATCH weston 1/3] Standardize error checking for strtol calls

2016-07-12 Thread Bryce Harrington
This tightens up the strtol() error checking in several places where it is used for parsing environment variables, and in the backlight interface that is reading numbers from files under /sys/class/backlight. All of these uses are expecting strings containing decimal numbers and nothing else, so th

Re: [PATCH weston] Require base-10 for strtol() calls

2016-07-12 Thread Peter Hutterer
On Tue, Jul 12, 2016 at 06:54:49PM -0700, Bryce Harrington wrote: > On Wed, Jul 13, 2016 at 10:27:49AM +1000, Peter Hutterer wrote: > > On Tue, Jul 12, 2016 at 04:51:27PM -0700, Bryce Harrington wrote: > > > The third arg to strtol() specifies the base to assume for the number. > > > When 0 is pass

Re: [PATCH weston] Require base-10 for strtol() calls

2016-07-12 Thread Yong Bakos
On Jul 12, 2016, at 4:51 PM, Bryce Harrington wrote: > > The third arg to strtol() specifies the base to assume for the number. > When 0 is passed, as is currently done in option-parser.c, hexadecimal > and octal numbers are permitted and automatically detected and > converted. > > This change i

Re: [PATCH weston] Require base-10 for strtol() calls

2016-07-12 Thread Bryce Harrington
On Tue, Jul 12, 2016 at 06:49:06PM -0700, Yong Bakos wrote: > On Jul 12, 2016, at 4:51 PM, Bryce Harrington wrote: > > > > The third arg to strtol() specifies the base to assume for the number. > > When 0 is passed, as is currently done in option-parser.c, hexadecimal > > and octal numbers are pe

Re: [PATCH weston] Require base-10 for strtol() calls

2016-07-12 Thread Bryce Harrington
On Wed, Jul 13, 2016 at 10:27:49AM +1000, Peter Hutterer wrote: > On Tue, Jul 12, 2016 at 04:51:27PM -0700, Bryce Harrington wrote: > > The third arg to strtol() specifies the base to assume for the number. > > When 0 is passed, as is currently done in option-parser.c, hexadecimal > > and octal num

Re: [PATCH weston] Include space in 'if ('

2016-07-12 Thread Bryce Harrington
On Wed, Jul 13, 2016 at 10:23:42AM +1000, Peter Hutterer wrote: > On Tue, Jul 12, 2016 at 04:59:05PM -0700, Bryce Harrington wrote: > > Signed-off-by: Bryce Harrington > > --- > > Reviewed-by: Peter Hutterer > but seriously, imo you should push things like this directly, I'm not sure > how many

Re: [PATCH weston] Require base-10 for strtol() calls

2016-07-12 Thread Peter Hutterer
On Tue, Jul 12, 2016 at 04:51:27PM -0700, Bryce Harrington wrote: > The third arg to strtol() specifies the base to assume for the number. > When 0 is passed, as is currently done in option-parser.c, hexadecimal > and octal numbers are permitted and automatically detected and > converted. > > This

Re: [PATCH weston] Include space in 'if ('

2016-07-12 Thread Peter Hutterer
On Tue, Jul 12, 2016 at 04:59:05PM -0700, Bryce Harrington wrote: > Signed-off-by: Bryce Harrington > --- Reviewed-by: Peter Hutterer but seriously, imo you should push things like this directly, I'm not sure how many eyeballs whitespace changes really need :) Cheers, Peter > compositor/ma

[PATCH weston] Include space in 'if ('

2016-07-12 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- compositor/main.c | 2 +- ivi-shell/ivi-layout-transition.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compositor/main.c b/compositor/main.c index 8400d70..1f75ae0 100644 --- a/compositor/main.c +++ b/compositor/main.

[PATCH weston] Require base-10 for strtol() calls

2016-07-12 Thread Bryce Harrington
The third arg to strtol() specifies the base to assume for the number. When 0 is passed, as is currently done in option-parser.c, hexadecimal and octal numbers are permitted and automatically detected and converted. This change is an expansion of f6051cbab84c0e577473b67f0585c0f329eb80fe to cover t

[PATCH libinput] touchpad: reduce middle button size on Dell touchpads to 10mm

2016-07-12 Thread Peter Hutterer
All Dell touchpas appear to have a visual marker on their touchpads. With a visible marker our middle button can (and should) be much smaller since we can rely on users to hit the button precisely. https://bugs.freedesktop.org/show_bug.cgi?id=96710 Signed-off-by: Peter Hutterer Tested-by: Andy L

Re: [PATCH weston] config-parser: Catch negative numbers assigned to unsigned config values

2016-07-12 Thread Bryce Harrington
On Tue, Jul 12, 2016 at 01:17:20PM +0100, Eric Engestrom wrote: > On Mon, Jul 11, 2016 at 05:55:15PM -0700, Bryce Harrington wrote: > > strtoul() has a side effect that when given a string representing a > > negative number, it returns a negated version as the value, and does not > > flag an error.

Re: [PATCH weston] config-parser: Catch negative numbers assigned to unsigned config values

2016-07-12 Thread Bryce Harrington
On Tue, Jul 12, 2016 at 10:58:05AM -0700, Bill Spitzak wrote: > I tested this and at least for libc on linux it returns 0x1-n, ie > "-1" is 0x. > > This is actually pretty useful when the unsigned value is bitflags or you > want to guarantee you typed in the largest number possible

Re: [PATCH weston] rdp: Check for non-digits and errno in strtol call

2016-07-12 Thread Bryce Harrington
On Tue, Jul 12, 2016 at 08:12:37AM -0700, Yong Bakos wrote: > On Jul 11, 2016, at 5:02 PM, Bryce Harrington wrote: > > > > Improve error checking for situations like RDP_FD=42foo, or where the > > provided number is out of range. > > > > Suggestion by Yong Bakos. > > > > Signed-off-by: Bryce Ha

Re: Building wayland-ivi-extension source code error

2016-07-12 Thread Yong Bakos
On Jul 12, 2016, at 6:02 AM, Anthenony wrote: > > Hi,All: > > Dose anyone have the same problem in building wayland-ivi-extension as me? Did you build and install wayland itself? Seems you don't have wayland-scanner. yong > yuanjiawei@yuanjiawei:~/wayland-ivi-entension/wayland-ivi-exten

Re: XDC 2016 : Call for paper

2016-07-12 Thread Martin Peres
On 13/05/16 01:56, Martin Peres wrote: Hello, I have the pleasure to announce that the X.org Developer Conference 2016 will be held in Helsinki from September 21 to September 23. The venue is located at Haaga-Helia university[0], next to the Pasila station. The official page for the event is ht

Building wayland-ivi-extension source code error

2016-07-12 Thread Anthenony
Hi,All: Dose anyone have the same problem in building wayland-ivi-extension as me? yuanjiawei@yuanjiawei:~/wayland-ivi-entension/wayland-ivi-extension-so/build$ cmake ../wayland-ivi-extension/ -- The C compiler identification is GNU 4.9.2 -- The CXX compiler identification is GNU 4.9.2 --

Re: [PATCH weston] rdp: Check for non-digits and errno in strtol call

2016-07-12 Thread Eric Engestrom
On Mon, Jul 11, 2016 at 05:02:44PM -0700, Bryce Harrington wrote: > Improve error checking for situations like RDP_FD=42foo, or where the > provided number is out of range. > > Suggestion by Yong Bakos. > > Signed-off-by: Bryce Harrington Reviewed-by: Eric Engestrom > --- > libweston/composi

Re: [PATCH weston] config-parser: Catch negative numbers assigned to unsigned config values

2016-07-12 Thread Eric Engestrom
On Mon, Jul 11, 2016 at 05:55:15PM -0700, Bryce Harrington wrote: > strtoul() has a side effect that when given a string representing a > negative number, it returns a negated version as the value, and does not > flag an error. IOW, strtoul("-42", &val) sets val to 42. This could > potentially re