]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
common/strtol.cc: Get error testing also to work on FreeBSD 12034/head
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 17 Nov 2016 00:08:27 +0000 (01:08 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 17 Nov 2016 23:37:37 +0000 (00:37 +0100)
commitce47832cf7a2c458c7e81cc53fd4ad30e01e7870
tree3d149d0b419b079e888beaa8a05b142a1ddd15fb
parenteb8b4c8897d5614eccceab741d8c0d469efa7ce7
common/strtol.cc: Get error testing also to work on FreeBSD

 - change order of testing
 - But report the same error types.
 - Changed to report for the last error since the value is there but
   not allowed characters follow.

Error found by: run-cli-tests, because the wrong string was returned.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/strtol.cc