~connman-maintainers/connman/head

Viewing all changes in revision 8057.

  • Committer: Daniel Wagner
  • Date: 2020-12-14 08:29:03 UTC
  • Revision ID: git-v1:96f412f3dc0a8e598ffe9cfca16d52dcf59629e4
src: Test return value of inet_pton consistently

inet_pton return 1 on success and 0 or -1 on failure depending on the
error it wants to return. Use either '== 1' or '!= 1' consistently to
test if the call was succesfull. ConnMan doesn't destinguish between 0
and -1.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: