selftests: watchdog: prefer strtoul() over atoi()
authorEugeniu Rosca <erosca@de.adit-jv.com>
Sat, 1 Jul 2017 12:57:27 +0000 (14:57 +0200)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 24 Jul 2017 18:36:47 +0000 (12:36 -0600)
commit7a5e10d439b162ae76e7d7a1bbd5653e62abb5bf
tree2397798eb051d1d644028616072bd60b8006c5af
parent749fb263b304faf60adbbf34988624fa7f33db1b
selftests: watchdog: prefer strtoul() over atoi()

commit f15d7114bbdd ("Documentation/watchdog: add timeout and ping rate
control to watchdog-test.c") used both atoi() and strtoul() for string
to integer conversion. As usage of atoi() is discouraged in newer code,
replace it with strtoul() for consistency.

Signed-off-by: Eugeniu Rosca <erosca@de.adit-jv.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/watchdog/watchdog-test.c