aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2021-03-24 21:07:39 +0200
committerSergey Poznyakoff <gray@gnu.org>2021-03-24 21:07:39 +0200
commit269d2040a62e45a35d7f5eef3e868813d44213c0 (patch)
tree788ca76ada7f6cc992d779476f45242a46864569 /src
parent7dd8ba91d8b6a2640e6c01c3e3a4234828646f23 (diff)
downloadcpio-269d2040a62e45a35d7f5eef3e868813d44213c0.tar.gz
cpio-269d2040a62e45a35d7f5eef3e868813d44213c0.tar.bz2
Improve online version of the documentation.
Diffstat (limited to 'src')
-rw-r--r--src/copyin.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/copyin.c b/src/copyin.c
index c8ea278..a096048 100644
--- a/src/copyin.c
+++ b/src/copyin.c
@@ -1212,7 +1212,6 @@ swab_array (char *ptr, int count)
void
process_copy_in ()
{
- char done = false; /* True if trailer reached. */
FILE *tty_in = NULL; /* Interactive file for rename option. */
FILE *tty_out = NULL; /* Interactive file for rename option. */
FILE *rename_in = NULL; /* Batch file for rename option. */
@@ -1284,7 +1283,7 @@ process_copy_in ()
change_dir ();
/* While there is more input in the collection, process the input. */
- while (!done)
+ while (1)
{
swapping_halfwords = swapping_bytes = false;
@@ -1318,10 +1317,7 @@ process_copy_in ()
{
/* Is this the header for the TRAILER file? */
if (strcmp (CPIO_TRAILER_NAME, file_hdr.c_name) == 0)
- {
- done = true;
- break;
- }
+ break;
cpio_safer_name_suffix (file_hdr.c_name, false, !no_abs_paths_flag,
false);

Return to:

Send suggestions and report system problems to the System administrator.