weston/shared
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
..
cairo-util.c Moved helper macro to a discrete include file. 2015-06-15 17:11:45 -07:00
cairo-util.h cairo-util: return theme location from frame_touch_down 2015-12-08 13:04:34 -06:00
config-parser.c Require base-10 for strtol() calls 2016-07-12 18:46:13 -07:00
config-parser.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
file-util.c shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
file-util.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
frame.c cairo-util: return theme location from frame_touch_down 2015-12-08 13:04:34 -06:00
helpers.h Unified multiple definitions of container_of() macro. 2015-06-15 17:11:58 -07:00
image-loader.c configure: Make jpeglib an optional dependency. 2016-03-07 12:05:52 -08:00
image-loader.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
matrix.c shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
matrix.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00
option-parser.c option-parser: Require integer option string values to be base-10 2016-07-08 17:44:10 -07:00
os-compatibility.c log: Open log file CLOEXEC so child processes don't get the fd 2015-07-16 19:28:36 -07:00
os-compatibility.h log: Open log file CLOEXEC so child processes don't get the fd 2015-07-16 19:28:36 -07:00
platform.h platform: explicitly cast the return value of weston_platform_get_egl_proc_address 2016-03-08 23:23:26 -08:00
timespec-util.h compositor,shared: add millihz_to_nsec() 2015-07-16 13:55:05 +03:00
xalloc.c Remove a wrong closing “extern "C"” in shared/xalloc.c 2016-07-11 13:22:37 -07:00
xalloc.h shared: Print .c file/line number in x* routines 2016-03-17 14:17:02 +02:00
zalloc.h shared: Update boilerplate from MIT X11 license to MIT Expat license 2015-06-15 13:04:18 -07:00