depmod: Don't accept "make_map_files yes-please"
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 12 Mar 2009 11:45:45 +0000 (11:45 +0000)
committerAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 12 Mar 2009 11:45:45 +0000 (11:45 +0000)
commitd800f14becf07a8575428fce8fa3af2908b5abec
tree6b41df3daff29293be6dbb95ca03d33cc2d6ccb5
parentb95d50bcc36ee6f94ef6d9eaa9715c66d6d7bfdd
depmod: Don't accept "make_map_files yes-please"

There's no obvious reason to use strncmp() here, to try and accept all
words which _start_ with "yes" or "no".  Just check for "yes" and "no"
using streq(), like the "config binary_indexes" option in modprobe.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
depmod.c