aboutsummaryrefslogtreecommitdiff
path: root/src/copyin.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-11-04 17:51:52 +0200
committerSergey Poznyakoff <gray@gnu.org>2019-11-04 17:51:52 +0200
commitb7b5a9c456fdcd767c0f041d67af240de5b58fce (patch)
tree838cd975c733e18c9cab00dea26b34719a95b19b /src/copyin.c
parent6ee76233f40924b358b715911aa1c0e3c96a026c (diff)
downloadcpio-b7b5a9c456fdcd767c0f041d67af240de5b58fce.tar.gz
cpio-b7b5a9c456fdcd767c0f041d67af240de5b58fce.tar.bz2
Various fixes
* doc/cpio.texi: Document URLs of the mailing list archive and subscription interface. * src/copyin.c (try_existing_file): Change type of the last argument. (copyin_file): Initialize existing_dir. * src/dstring.c: Include xalloc.h * src/filemode.c (mode_string): mode is unsigned int.
Diffstat (limited to 'src/copyin.c')
-rw-r--r--src/copyin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/copyin.c b/src/copyin.c
index 7cdfda3..fd20426 100644
--- a/src/copyin.c
+++ b/src/copyin.c
@@ -178,7 +178,7 @@ list_file (struct cpio_file_stat* file_hdr, int in_file_des)
static int
try_existing_file (struct cpio_file_stat* file_hdr, int in_file_des,
- int *existing_dir)
+ bool *existing_dir)
{
struct stat file_stat;
@@ -675,7 +675,7 @@ copyin_link (struct cpio_file_stat *file_hdr, int in_file_des)
static void
copyin_file (struct cpio_file_stat *file_hdr, int in_file_des)
{
- int existing_dir;
+ bool existing_dir = false;
if (!to_stdout_option
&& try_existing_file (file_hdr, in_file_des, &existing_dir) < 0)

Return to:

Send suggestions and report system problems to the System administrator.