diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2006-11-16 19:51:23 +0100 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2006-11-16 19:51:23 +0100 |
commit | 1a0333565f1a89d87b36e7a5c83bac9c145a9916 (patch) | |
tree | dff547390d17bf667611e211d6a385ba732d730a /src | |
parent | a73fdeb2ce0a1574ec84d7dd7f670217088a818c (diff) | |
download | coreutils-1a0333565f1a89d87b36e7a5c83bac9c145a9916.tar.xz |
* bootstrap.conf (gnulib_modules): Add sys_stat, since we use it directly too.
* lib/.cvsignore, lib/.gitignore: Add root-dev-ino.c, root-dev-ino.h.
* m4/.cvsignore, m4/.gitignore: Add root-dev-ino.m4.
* src/ls.c (DIRED_FPUTS_LITERAL, PUSH_CURRENT_DIRED_POS):
Omit unnecessary parenthesization of args.
* src/od.c (EQUAL_BLOCKS): Likewise.
* src/system.h (STREQ, ASSIGN_STRDUPA): Likewise.
Diffstat (limited to 'src')
-rw-r--r-- | src/ls.c | 6 | ||||
-rw-r--r-- | src/od.c | 2 | ||||
-rw-r--r-- | src/system.h | 4 |
3 files changed, 6 insertions, 6 deletions
@@ -863,11 +863,11 @@ static size_t dired_pos; /* Write S to STREAM and increment DIRED_POS by S_LEN. */ #define DIRED_FPUTS(s, stream, s_len) \ - do {fputs ((s), (stream)); dired_pos += s_len;} while (0) + do {fputs (s, stream); dired_pos += s_len;} while (0) /* Like DIRED_FPUTS, but for use when S is a literal string. */ #define DIRED_FPUTS_LITERAL(s, stream) \ - do {fputs ((s), (stream)); dired_pos += sizeof((s)) - 1;} while (0) + do {fputs (s, stream); dired_pos += sizeof (s) - 1;} while (0) #define DIRED_INDENT() \ do \ @@ -892,7 +892,7 @@ static struct obstack subdired_obstack; do \ { \ if (dired) \ - obstack_grow ((obs), &dired_pos, sizeof (dired_pos)); \ + obstack_grow (obs, &dired_pos, sizeof (dired_pos)); \ } \ while (0) @@ -1175,7 +1175,7 @@ write_block (uintmax_t current_offset, size_t n_bytes, static bool first = true; static bool prev_pair_equal = false; -#define EQUAL_BLOCKS(b1, b2) (memcmp ((b1), (b2), bytes_per_block) == 0) +#define EQUAL_BLOCKS(b1, b2) (memcmp (b1, b2, bytes_per_block) == 0) if (abbreviate_duplicate_blocks && !first && n_bytes == bytes_per_block diff --git a/src/system.h b/src/system.h index edb3edecd..9cc144c76 100644 --- a/src/system.h +++ b/src/system.h @@ -293,7 +293,7 @@ select_plural (uintmax_t n) return (n <= ULONG_MAX ? n : n % PLURAL_REDUCER + PLURAL_REDUCER); } -#define STREQ(a, b) (strcmp ((a), (b)) == 0) +#define STREQ(a, b) (strcmp (a, b) == 0) #if !HAVE_DECL_FREE void free (); @@ -506,7 +506,7 @@ enum const char *s_ = (S); \ size_t len_ = strlen (s_) + 1; \ char *tmp_dest_ = alloca (len_); \ - DEST = memcpy (tmp_dest_, (s_), len_); \ + DEST = memcpy (tmp_dest_, s_, len_); \ } \ while (0) #endif |