]> err.no Git - util-linux/commit
more: minor fixes to magic()
authorJames Youngman <jay@gnu.org>
Wed, 14 May 2008 08:51:40 +0000 (09:51 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Jun 2008 09:54:28 +0000 (11:54 +0200)
commit115e6f00b81a3a30d91294250419ef006d102258
treec60f74443fa459995a841c02231f65f0ce73ef4a
parentfba4e21fa000748112d39c8e9fc266f1cbe9a08f
more: minor fixes to magic()

Read the magic bytes into signed chars instead of vanilla chars in
order to ensure consistent results even on systems whose char type has
no sign.  Eliminate spurious parentheses in return statements.
Correct grammatical errors in comments.

Signed-off-by: James Youngman <jay@gnu.org>
text-utils/more.c