weston/libweston
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
..
animation.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
bindings.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
clipboard.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-drm.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-drm.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-fbdev.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-fbdev.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-headless.c compositor-headless: Support starting with zero outputs 2016-06-27 13:17:05 +03:00
compositor-headless.h compositor-headless: Support starting with zero outputs 2016-06-27 13:17:05 +03:00
compositor-rdp.c rdp: Check for non-digits and errno in strtol call 2016-07-12 14:24:50 -07:00
compositor-rdp.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-wayland.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-wayland.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-x11.c compositor-x11: Flush xcb connection from x11_output_destroy() 2016-07-04 13:11:29 +03:00
compositor-x11.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor.c Require base-10 for strtol() calls 2016-07-12 18:46:13 -07:00
compositor.h compositor: Untangle surface/view is_mapped from output assignments 2016-07-01 15:23:50 +03:00
data-device.c compositor: Untangle surface/view is_mapped from output assignments 2016-07-01 15:23:50 +03:00
dbus.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
dbus.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
gl-renderer.c gl-renderer: Always setup gl-renderer 2016-06-27 15:57:11 +03:00
gl-renderer.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
input.c compositor: Untangle surface/view is_mapped from output assignments 2016-07-01 15:23:50 +03:00
launcher-direct.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
launcher-impl.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
launcher-logind.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
launcher-util.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
launcher-util.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
launcher-weston-launch.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libbacklight.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libbacklight.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libinput-device.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libinput-device.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libinput-seat.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libinput-seat.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libweston.pc.in Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
linux-dmabuf.c dmabuf: Fix grammar in a comment 2016-07-07 10:50:23 -07:00
linux-dmabuf.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
log.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
noop-renderer.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
pixman-renderer.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
pixman-renderer.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
plugin-registry.c compositor: add plugin-registry 2016-07-01 14:10:26 +03:00
plugin-registry.h compositor: add plugin-registry 2016-07-01 14:10:26 +03:00
screenshooter.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
spring-tool.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
timeline-object.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
timeline.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
timeline.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
vaapi-recorder.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
vaapi-recorder.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
version.h.in Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
vertex-clipping.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
vertex-clipping.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
weston-egl-ext.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
weston-launch.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
weston-launch.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
zoom.c Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00