diff --git a/lib/exclude.c b/lib/exclude.c index 0de08dea5..75042cbd8 100644 --- a/lib/exclude.c +++ b/lib/exclude.c @@ -24,20 +24,14 @@ # include #endif -#if HAVE_STDBOOL_H -# include -#else -typedef enum {false = 0, true = 1} bool; -#endif +#include #include #ifndef errno extern int errno; #endif +#include #include -#if HAVE_SYS_TYPES_H -# include -#endif #if HAVE_STDLIB_H # include #endif @@ -107,8 +101,7 @@ new_exclude (void) struct exclude *ex = xmalloc (sizeof *ex); ex->exclude_count = 0; ex->exclude_alloc = (1 << 6); /* This must be a power of 2. */ - ex->exclude = xmalloc (ex->exclude_alloc - * sizeof ex->exclude[0]); + ex->exclude = xmalloc (ex->exclude_alloc * sizeof ex->exclude[0]); return ex; } diff --git a/lib/human.h b/lib/human.h index 343fff7e8..604fec1ba 100644 --- a/lib/human.h +++ b/lib/human.h @@ -1,29 +1,41 @@ +/* human.h -- print human readable file size + + Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free + Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ + +/* Written by Paul Eggert and Larry McVoy. */ + #ifndef HUMAN_H_ # define HUMAN_H_ 1 -/* Before including this file, you need something like the following: +# if HAVE_CONFIG_H +# include +# endif - #if HAVE_CONFIG_H - # include - #endif +# include +# include - #if HAVE_STDBOOL_H - # include - #else - typedef enum {false = 0, true = 1} bool; - #endif - - #if HAVE_INTTYPES_H - # include - #else - # if HAVE_STDINT_H - # include - # endif - #endif - - #include - - so that the proper identifiers are all declared. */ +# if HAVE_INTTYPES_H +# include +# else +# if HAVE_STDINT_H +# include +# endif +# endif /* A conservative bound on the maximum length of a human-readable string. The output can be the square of the largest uintmax_t, so double