diff options
author | Jim Meyering <jim@meyering.net> | 2003-06-06 19:16:06 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-06-06 19:16:06 +0000 |
commit | 4a57eac20dc5aa55b0d9beaefd00c35928b88de0 (patch) | |
tree | 1bcc4d453e49cf28f66da4f45881758376dd2570 /lib/exclude.c | |
parent | 47158d0de8aa97855a1a891884a5de2f95509221 (diff) | |
download | coreutils-4a57eac20dc5aa55b0d9beaefd00c35928b88de0.tar.xz |
Merge from gnulib.
Diffstat (limited to 'lib/exclude.c')
-rw-r--r-- | lib/exclude.c | 13 |
1 files changed, 3 insertions, 10 deletions
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 <config.h> #endif -#if HAVE_STDBOOL_H -# include <stdbool.h> -#else -typedef enum {false = 0, true = 1} bool; -#endif +#include <stdbool.h> #include <errno.h> #ifndef errno extern int errno; #endif +#include <stddef.h> #include <stdio.h> -#if HAVE_SYS_TYPES_H -# include <sys/types.h> -#endif #if HAVE_STDLIB_H # include <stdlib.h> #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; } |