weston/compositor
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
..
cms-colord.c Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
cms-helper.c Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
cms-helper.h Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
cms-static.c Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
main.c Require base-10 for strtol() calls 2016-07-12 18:46:13 -07:00
screen-share.c Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
systemd-notify.c Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
text-backend.c Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
weston-screenshooter.c Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
weston.desktop Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
weston.h xwayland: make the plugin usable by libweston compositors 2016-07-01 14:34:33 +03:00
weston.pc.in Move weston source to compositor/ 2016-06-23 17:44:54 +03:00
xwayland.c xwayland: Cleanup error message on spawn failure Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> 2016-07-07 10:48:34 -07:00