aboutsummaryrefslogtreecommitdiff
path: root/src/copyin.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2009-07-31 12:26:36 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2009-07-31 12:26:36 +0300
commit1149a47955582b5f7855d836e670485ef8e255d0 (patch)
treecfa7cce71b900ca34a44338ed603064110bb0d35 /src/copyin.c
parent3a7548745ed61ed4d20a5837ef53cfea46e52bb0 (diff)
downloadcpio-1149a47955582b5f7855d836e670485ef8e255d0.tar.gz
cpio-1149a47955582b5f7855d836e670485ef8e255d0.tar.bz2
Fix mt and make sure it is always build during distcheck.
Minor fixes in cpio. * Makefile.am (AM_DISTCHECK_CONFIGURE_FLAGS): New variable. Ensure that distcheck builds mt. * bootstrap: Patch Makefile.in to honor AM_DISTCHECK_CONFIGURE_FLAGS. * gnulib.modules: add argp-version-etc and progname. * src/Makefile.am: Remove useless dependency. * src/copyin.c (long_format): Fix printf arguments. * src/copyout.c (read_for_checksum): Return unsigned long. (process_copy_out): Remove unused variable. * src/extern.h (crc): Change type to unsigned long. (program_name): Remove. * src/global.c: Likewise. * src/main.c: Include argp-version-etc.h and progname.h (argp_program_version): Remove. (program_authors): New global. (options): Remove the 'Informative options' group. These are handled automatically by argp. (parse_opt): Likewise. (licence): Remove. This info is output by --version. (process_args): Remove useless test. (main): Use set_program_name and argp_version_setup. * src/mt.c: Remove superfluous includes. Include argp-version-etc.h and progname.h Use argp to parse arguments. Supply the fatal_exit function. * tests/version.at: Update for the new --version output. * THANKS: Add Peter Breitenlohner. * AUTHORS: Update Sergey's email.
Diffstat (limited to 'src/copyin.c')
-rw-r--r--src/copyin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/copyin.c b/src/copyin.c
index 70d507c..59483da 100644
--- a/src/copyin.c
+++ b/src/copyin.c
@@ -1,6 +1,6 @@
/* copyin.c - extract or list a cpio archive
- Copyright (C) 1990,1991,1992,2001,2002,2003,2004,
- 2005, 2006, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 1992, 2001, 2002, 2003, 2004,
+ 2005, 2006, 2007, 2009 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -843,7 +843,7 @@ long_format (struct cpio_file_stat *file_hdr, char *link_name)
}
tbuf[16] = '\0';
- printf ("%s %3lu ", mbuf, file_hdr->c_nlink);
+ printf ("%s %3lu ", mbuf, (unsigned long) file_hdr->c_nlink);
if (numeric_uid)
printf ("%-8u %-8u ", (unsigned int) file_hdr->c_uid,

Return to:

Send suggestions and report system problems to the System administrator.