weston/libweston
Bryce Harrington 913d7c15f7 Standardize error checking for strtol calls
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 the error checking can all be tightened up and made
consistent with other strtol() calls.

This follows the error checking style used in Wayland
(c.f. wayland-client.c and scanner.c) and c.f. commit cbc05378.

Signed-off-by: Bryce Harrington <bryce@osg.samsung.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
2016-08-06 18:19:01 -07:00
..
animation.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
bindings.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
clipboard.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
compositor-drm.c compositor-drm: Do not exit when there are no outputs left 2016-08-05 15:14:07 +03:00
compositor-drm.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-fbdev.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
compositor-fbdev.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
compositor-headless.c compositor-headless: Use non-cast functions to retrieve backend and output objects 2016-08-05 16:40:05 +03:00
compositor-headless.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
compositor-rdp.c compositor-rdp: Use non-cast functions to retrieve backend and output objects 2016-08-05 16:41:58 +03:00
compositor-rdp.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
compositor-wayland.c compositor-wayland: Use non-cast functions to retrieve backend and output objects 2016-08-05 16:45:07 +03:00
compositor-wayland.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
compositor-x11.c compositor-x11: Use non-cast functions to retrieve backend and output objects 2016-08-05 16:47:07 +03:00
compositor-x11.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
compositor.c Standardize error checking for strtol calls 2016-08-06 18:19:01 -07:00
compositor.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
data-device.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
dbus.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
dbus.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
gl-renderer.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
gl-renderer.h include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
input.c input: Support non-rectangular pointer confine regions 2016-07-26 17:21:15 +08: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 include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
launcher-util.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
launcher-util.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
launcher-weston-launch.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
libbacklight.c Standardize error checking for strtol calls 2016-08-06 18:19:01 -07:00
libbacklight.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libinput-device.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
libinput-device.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libinput-seat.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
libinput-seat.h Rename src/ to libweston/ 2016-06-23 17:44:54 +03:00
libweston.pc.in libweston: fix major in libweston.pc 2016-08-02 14:19:11 +03:00
linux-dmabuf.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -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 include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
pixman-renderer.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07: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 include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
spring-tool.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07: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 weston-egl-ext.h: add EGL platform definitions 2016-07-22 15:29:18 +01: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 include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00