]> git.ipfire.org Git - thirdparty/iw.git/commit - info.c
iw: fix enum warnings
authorBrian Norris <briannorris@chromium.org>
Mon, 8 Oct 2018 17:51:26 +0000 (10:51 -0700)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 9 Oct 2018 07:57:53 +0000 (09:57 +0200)
commitbefb32dc97cf5fc59bf551089c224d29e195aa9a
treed19d54c4ace8c6470de147db582d63c0bc2fc940
parent0fc92835634e80f91f065422b9cce14441e44a9f
iw: fix enum warnings

clang warns about the misuse of enums:

reg.c:246:26: warning: implicit conversion from enumeration type 'enum command_identify_by' to different enumeration type 'enum id_input' [-Wenum-conversion]
        err = handle_cmd(state, CIB_NONE, 2, dump_args);
              ~~~~~~~~~~        ^~~~~~~~
info.c:645:26: warning: implicit conversion from enumeration type 'enum command_identify_by' to different enumeration type 'enum id_input' [-Wenum-conversion]
        err = handle_cmd(state, CIB_NONE, 2, feat_args);
              ~~~~~~~~~~        ^~~~~~~~

Signed-off-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
info.c
reg.c