]> git.ipfire.org Git - thirdparty/hostap.git/commit
FST: Fix a compiler warning
authorJouni Malinen <j@w1.fi>
Sun, 20 Mar 2016 19:37:12 +0000 (21:37 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 20 Mar 2016 19:38:45 +0000 (21:38 +0200)
commit24bce46e9c86c77fcb5b22a55c4ed7843d92f48d
treed55c5c9bf57d886515abb0b6f9c6e9244c5c22ed
parente567c582a7ab7d9a9160d546550a15576409cad6
FST: Fix a compiler warning

FST_MAX_PRIO_VALUE is unsigned (u32) and some gcc versions warning about
comparisong to long int val at least on 32-bit builds. Get rid of this
warning by type casesing val to unsigned long int after having verified
that it is positive.

Signed-off-by: Jouni Malinen <j@w1.fi>
hostapd/config_file.c