]> 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>
Fri, 12 Dec 2008 12:09:00 +0000 (13:09 +0100)
commit9f446af07d99157106b1a7e2c20e03c75f2dd6ff
treec2b21b21c4864f5c5b68cc0ec68daf3bfdedd4bc
parent986f014ea6828c61021f9e7828326e1ea747a7b3
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