system: fix undefined behavior in wdt offline check
authorAlexander Couzens <lynxis@fe80.eu>
Wed, 23 Sep 2015 13:04:18 +0000 (15:04 +0200)
committerJohn Crispin <blogic@openwrt.org>
Sat, 3 Oct 2015 07:47:35 +0000 (09:47 +0200)
commitc2f1f1908b43f945efc99cb43b49e512ee5d02aa
tree968af72a42f202942e23ad8c0dc8d26c036e18fa
parenta4505284b4d257b490cccd77a50c9c052854e7d5
system: fix undefined behavior in wdt offline check

watchdog_fd() is returning a char* and not a int. checking against < 0 could
lead in undefined behaviour.

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
system.c