ldlinux: Fix check for last command line entry
authorMatt Fleming <matt.fleming@intel.com>
Mon, 2 Apr 2012 12:50:22 +0000 (13:50 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Tue, 17 Apr 2012 09:58:33 +0000 (10:58 +0100)
commita51c83f273e7204d9ee8521e1f7e1d098e5d3382
treec7bb9baedc432632ef1e76b26187fdd669197eea
parentf1be23e2251520c35f8581f4612f2356ef6de0ee
ldlinux: Fix check for last command line entry

The expression that checks to see when we've reached the end of the
command line entries is incorrect, probably because the list macros
weren't used. Use list_is_last() to make the expression correct and
self-documenting.

This bug was highlighted by the following compiler warning,

cli.c: In function ‘cmd_reverse_search’:
cli.c:102:20: warning: comparison of distinct pointer types lacks a cast

Signed-off-by: Matt Fleming <matt.fleming@intel.com>
com32/elflink/ldlinux/cli.c