]> git.ipfire.org Git - thirdparty/coreutils.git/commit
(simple_cat, cat, main): Used char * rather than
authorJim Meyering <jim@meyering.net>
Sat, 23 Feb 2002 09:12:20 +0000 (09:12 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 23 Feb 2002 09:12:20 +0000 (09:12 +0000)
commit39ae860d5b45e577bfd5adabd57cd7ed6ec5ed2d
tree0a1083267b0908be8ccd4bed3e1b54e45a7b2947
parent8f0c48cf2f6d63f68f77b4adb86c1e38a81b9108
(simple_cat, cat, main): Used char * rather than
unsigned char *, to avoid some technical violations of the C
standard, and to avoid the need for casts.  I guess the
unsigned char * was probably there for improved performance
with ancient compilers, but the code wasn't using the
unsignedness any more.
Reported by Nelson H. F. Beebe.

(cat): int -> size_t for full_write arg.  This doesn't
fix any bugs since the buffer size is small, but it makes
the code a bit clearer.
src/cat.c