systemctl: remove compiler warning (#6717)
authorAlan Jenkins <alan.christopher.jenkins@gmail.com>
Fri, 1 Sep 2017 00:02:32 +0000 (01:02 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 1 Sep 2017 00:02:32 +0000 (09:02 +0900)
commit78ca909980ee6e632ce929fcf238655a425c7db6
tree6a6179f09157156cc08cf4649194f74e80c340f4
parentdfff69bfc49e06c1acf3560478974260e95b3c51
systemctl: remove compiler warning (#6717)

913c1916 changed _ACTION_INVALID to negative, changing the enum to a
signed type.  Take care to avoid comparing it with an unsigned type.

../src/systemctl/systemctl.c: In function â€˜start_unit’:
../src/systemctl/systemctl.c:3107:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
                 assert(arg_action < ELEMENTSOF(action_table));
src/systemctl/systemctl.c