[PATCH weston 0/3] Standardize error checking for strtol calls

Bryce Harrington bryce at osg.samsung.com
Wed Jul 13 04:16:30 UTC 2016


Make error handling of most strtol calls consistent with each other.

The first patch fixes various cases that are straightforward refactors.
The second and third patch cover cases where some idiosyncracies need
highlighted in the commit messages.  All three patches can be squashed
if desired.

Note that intentional omissions are the strtol() calls in the terminal.c
and multi-resource.c clients, because those usages make use of
strtol()'s return of the unparsed portion of the string.  Those could
also use improvement of error handling but will be different enough to
need special attention.

Bryce Harrington (3):
  Standardize error checking for strtol calls
  xwayland: Improve error checking for strtol call
  option-parser: Improve error checking for strtol call

 compositor/main.c           |  3 ++-
 compositor/systemd-notify.c |  2 +-
 libweston/compositor.c      |  3 ++-
 libweston/libbacklight.c    | 10 +++++++++-
 shared/option-parser.c      | 11 +++++++++--
 xwayland/launcher.c         |  3 ++-
 6 files changed, 25 insertions(+), 7 deletions(-)

-- 
1.9.1



More information about the wayland-devel mailing list