OSDN Git Service

bootctl: Fix the error checking for strtol result.
authorTao Bao <tbao@google.com>
Thu, 19 Nov 2015 22:43:53 +0000 (14:43 -0800)
committerTao Bao <tbao@google.com>
Thu, 19 Nov 2015 22:51:17 +0000 (14:51 -0800)
commit9608201e62a732c74ca71eb67f7b4e7a60612b86
tree7e05864cc4353e61f9904c435a71138f12c65196
parent6978131b781d16e6911fa51f68e101abe225de5c
bootctl: Fix the error checking for strtol result.

system/extras/bootctl/bootctl.c:136:13: warning: comparison is always false due to limited range of data type [-Wtype-limits]
     if (ret == LONG_MIN || ret == LONG_MAX) {

Change-Id: Id4816716e4c6d304c2ca531aadbcc62117ad7376
bootctl/bootctl.c