weston/compositor
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
..
cms-colord.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
cms-helper.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07: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 Standardize error checking for strtol calls 2016-08-06 18:19:01 -07:00
screen-share.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
systemd-notify.c Standardize error checking for strtol calls 2016-08-06 18:19:01 -07:00
text-backend.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07:00
weston-screenshooter.c include stdint.h for int32_t/uint32_t 2016-07-26 16:26:08 -07: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 libweston: use new versioning scheme 2016-08-02 13:52:58 +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