[Sheepdog] [PATCH 00/12] silence gcc warnings
MORITA Kazutaka
morita.kazutaka at lab.ntt.co.jp
Fri May 21 13:42:27 CEST 2010
This patchset kills all GCC warnings.
Regards,
Kazutaka
MORITA Kazutaka (12):
const correctness: connect_to() 1st parameter is really a const char
*
collie: use %Y instead of %y in time formatting
const correctness: make short_options a const char *
const correctness: change dir in main() from (char *) to (const char
*)
use a string literal for printf formatting
add a format attribute to the functions which have a format parameter
avoid mixed declarations and code
avoid using a void pointer in arithmetic
shadow problem: daemon is defined in <unistd.h> but used as a local
in a function
shadow problem: w is shadowed by a local in a function
define _GNU_SOURCE to use pread64() and pwrite64()
shadow problem: attr() is shadowed by its parameter
collie/collie.c | 4 ++--
collie/treeview.c | 4 ++--
configure.ac | 2 +-
include/net.h | 2 +-
lib/logger.c | 22 ++++++++++++++--------
lib/net.c | 8 ++++----
sheep/group.c | 4 ++--
sheep/sheep.c | 4 ++--
sheep/sheep_priv.h | 2 +-
sheep/store.c | 20 ++++++++++----------
10 files changed, 39 insertions(+), 33 deletions(-)
More information about the sheepdog
mailing list