]> git.ipfire.org Git - thirdparty/tar.git/commitdiff
Fewer macros in system.c
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Aug 2024 16:48:07 +0000 (09:48 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 19 Aug 2024 16:57:13 +0000 (09:57 -0700)
* src/system.c (PREAD, PWRITE): Now constants, not macros.

src/system.c

index eff8dae588c5b471ffe92f71b1d208d1c03879c3..d349bd67182de1876b9bce8ef58169e2dedd57a1 100644 (file)
@@ -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__