From: Paul Eggert Date: Mon, 19 Aug 2024 16:48:07 +0000 (-0700) Subject: Fewer macros in system.c X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd0f95965dad9d4e8a00fd2598e26208ac756dab;p=thirdparty%2Ftar.git Fewer macros in system.c * src/system.c (PREAD, PWRITE): Now constants, not macros. --- diff --git a/src/system.c b/src/system.c index eff8dae5..d349bd67 100644 --- a/src/system.c +++ b/src/system.c @@ -312,8 +312,8 @@ sys_write_archive_buffer (void) return rmtwrite (archive, record_start->buffer, record_size); } -#define PREAD 0 /* read file descriptor from pipe() */ -#define PWRITE 1 /* write file descriptor from pipe() */ +/* Read and write file descriptors from a pipe(pipefd) call. */ +enum { PREAD, PWRITE }; /* Work around GCC bug 109839. */ #if 13 <= __GNUC__