Clean up the code in bin/ to reduce warnings from GCC3.
authorChris Pressey <cpressey@dragonflybsd.org>
Fri, 19 Mar 2004 17:30:59 +0000 (17:30 +0000)
committerChris Pressey <cpressey@dragonflybsd.org>
Fri, 19 Mar 2004 17:30:59 +0000 (17:30 +0000)
commit1c755102bd9435dcf9a431affecb49d10d524f79
treed4ad7dd5e67b605612e75695fe5f61556b24edcd
parenta78cd7563c9ec3cf7b234be12c4928541ec8bb41
Clean up the code in bin/ to reduce warnings from GCC3.

Stage 3 of 5 or so: cleanups to cp, cpdup, and date.
- Add ``const'' to  appropriate variable declarations and casts.
- Convert ``quad'' types to ``long long''.
- Convert appropriate ``int'' types to ``size_t'' and ``dev_t''.
- Rename functions/variables to not conflict with globals.
- Add/remove function prototypes and #includes as appropriate.
- Split a long string constant.
- Convert K&R style declarations to ANSI style.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>
bin/cp/cp.c
bin/cp/utils.c
bin/cpdup/cpdup.c
bin/cpdup/misc.c
bin/date/date.c
bin/date/netdate.c
bin/date/vary.c