weston/xwayland
Bryce Harrington 375759e636 Require base-10 for strtol() calls
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 f6051cbab8
to cover the remaining strtol() calls in Weston, where the routine is
being used to read fds and pids - which are always expressed in base-10.
It also changes the calls in config-parser, used by
weston_config_section_get_int(), which in turn is being used to read
scales, sizes, times, rates, and delays; these are all expressed in
base-10 numbers only.

The benefit of limiting this to base-10 is to eliminate surprises when
parsing numbers from the command line.  Also, by making the code
consistent with other usages of strtol, it may make it possible to
factor out the common code in the future.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-07-12 18:46:13 -07:00
..
dnd.c xwayland: zalloc the x11_data_sources 2016-02-01 13:22:33 -08:00
hash.c Make config.h inclusion consistent 2016-06-16 11:01:54 -07:00
hash.h Move xwayland up one directory level 2013-12-04 10:20:02 -08:00
launcher.c Require base-10 for strtol() calls 2016-07-12 18:46:13 -07:00
selection.c xwayland: fix spelling mistake 2016-04-05 16:00:18 -07:00
window-manager.c xwm: let the shells decide the position of X windows 2015-12-18 11:48:25 -06:00
xwayland-api.h xwayland: Grammar fixes 2016-07-07 10:50:20 -07:00
xwayland.h xwayland: make the plugin usable by libweston compositors 2016-07-01 14:34:33 +03:00