Pavel Raiskup ddd988
diff --git a/src/copyin.c b/src/copyin.c
Pavel Raiskup ddd988
index 09f226b..d505407 100644
Pavel Raiskup ddd988
--- a/src/copyin.c
Pavel Raiskup ddd988
+++ b/src/copyin.c
Pavel Raiskup ddd988
@@ -178,7 +178,7 @@ list_file(struct cpio_file_stat* file_hdr, int in_file_des)
Pavel Raiskup ddd988
 #endif
Pavel Raiskup ddd988
       if (crc != file_hdr->c_chksum)
Pavel Raiskup ddd988
 	{
Pavel Raiskup ddd988
-	  error (0, 0, _("%s: checksum error (0x%lx, should be 0x%lx)"),
Pavel Raiskup ddd988
+	  error (0, 0, _("%s: checksum error (0x%x, should be 0x%x)"),
Pavel Raiskup ddd988
 		 file_hdr->c_name, crc, file_hdr->c_chksum);
Pavel Raiskup ddd988
 	}
Pavel Raiskup ddd988
     }
Pavel Raiskup ddd988
@@ -525,7 +525,7 @@ copyin_regular_file (struct cpio_file_stat* file_hdr, int in_file_des)
Pavel Raiskup ddd988
       if (archive_format == arf_crcascii)
Pavel Raiskup ddd988
 	{
Pavel Raiskup ddd988
 	  if (crc != file_hdr->c_chksum)
Pavel Raiskup ddd988
-	    error (0, 0, _("%s: checksum error (0x%lx, should be 0x%lx)"),
Pavel Raiskup ddd988
+	    error (0, 0, _("%s: checksum error (0x%x, should be 0x%x)"),
Pavel Raiskup ddd988
 		   file_hdr->c_name, crc, file_hdr->c_chksum);
Pavel Raiskup ddd988
 	}
Pavel Raiskup ddd988
       tape_skip_padding (in_file_des, file_hdr->c_filesize);
Pavel Raiskup ddd988
@@ -550,7 +550,7 @@ copyin_regular_file (struct cpio_file_stat* file_hdr, int in_file_des)
Pavel Raiskup ddd988
   if (archive_format == arf_crcascii)
Pavel Raiskup ddd988
     {
Pavel Raiskup ddd988
       if (crc != file_hdr->c_chksum)
Pavel Raiskup ddd988
-	error (0, 0, _("%s: checksum error (0x%lx, should be 0x%lx)"),
Pavel Raiskup ddd988
+	error (0, 0, _("%s: checksum error (0x%x, should be 0x%x)"),
Pavel Raiskup ddd988
 	       file_hdr->c_name, crc, file_hdr->c_chksum);
Pavel Raiskup ddd988
     }
Pavel Raiskup ddd988
 
Pavel Raiskup ddd988
@@ -1442,7 +1442,7 @@ process_copy_in ()
Pavel Raiskup ddd988
 	    tape_skip_padding (in_file_des, file_hdr.c_filesize);
Pavel Raiskup ddd988
 	    if (crc != file_hdr.c_chksum)
Pavel Raiskup ddd988
 	      {
Pavel Raiskup ddd988
-		error (0, 0, _("%s: checksum error (0x%lx, should be 0x%lx)"),
Pavel Raiskup ddd988
+		error (0, 0, _("%s: checksum error (0x%x, should be 0x%x)"),
Pavel Raiskup ddd988
 		       file_hdr.c_name, crc, file_hdr.c_chksum);
Pavel Raiskup ddd988
 	      }
Pavel Raiskup ddd988
          /* Debian hack: -v and -V now work with --only-verify-crc.
Pavel Raiskup fff689
diff --git a/src/copyout.c b/src/copyout.c
Pavel Raiskup ddd988
index 72f1989..03eaf88 100644
Pavel Raiskup fff689
--- a/src/copyout.c
Pavel Raiskup fff689
+++ b/src/copyout.c
Pavel Raiskup ddd988
@@ -33,10 +33,10 @@
Pavel Raiskup ddd988
 /* Read FILE_SIZE bytes of FILE_NAME from IN_FILE_DES and
Pavel Raiskup ddd988
    compute and return a checksum for them.  */
Pavel Raiskup fff689
 
Pavel Raiskup ddd988
-static unsigned long
Pavel Raiskup ddd988
+static uint32_t
Pavel Raiskup ddd988
 read_for_checksum (int in_file_des, int file_size, char *file_name)
Pavel Raiskup ddd988
 {
Pavel Raiskup ddd988
-  unsigned long crc;
Pavel Raiskup ddd988
+  uint32_t crc;
Pavel Raiskup ddd988
   char buf[BUFSIZ];
Pavel Raiskup ddd988
   int bytes_left;
Pavel Raiskup ddd988
   int bytes_read;
Pavel Raiskup ddd988
diff --git a/src/cpiohdr.h b/src/cpiohdr.h
Pavel Raiskup ddd988
index bb1ad6b..1c11998 100644
Pavel Raiskup ddd988
--- a/src/cpiohdr.h
Pavel Raiskup ddd988
+++ b/src/cpiohdr.h
Pavel Raiskup ddd988
@@ -123,7 +123,7 @@ struct cpio_file_stat /* Internal representation of a CPIO header */
Pavel Raiskup ddd988
   long c_rdev_maj;
Pavel Raiskup ddd988
   long c_rdev_min;
Pavel Raiskup ddd988
   size_t c_namesize;
Pavel Raiskup ddd988
-  unsigned long c_chksum;
Pavel Raiskup ddd988
+  uint32_t c_chksum;
Pavel Raiskup ddd988
   char *c_name;
Pavel Raiskup ddd988
   char *c_tar_linkname;
Pavel Raiskup ddd988
 };
Pavel Raiskup fff689
diff --git a/src/extern.h b/src/extern.h
Pavel Raiskup ddd988
index 4f94d40..3530bf6 100644
Pavel Raiskup fff689
--- a/src/extern.h
Pavel Raiskup fff689
+++ b/src/extern.h
Pavel Raiskup ddd988
@@ -75,7 +75,7 @@ extern char *new_media_message_after_number;
Pavel Raiskup ddd988
 extern int archive_des;
Pavel Raiskup ddd988
 extern char *archive_name;
Pavel Raiskup ddd988
 extern char *rsh_command_option;
Pavel Raiskup ddd988
-extern unsigned long crc;
Pavel Raiskup ddd988
+extern uint32_t crc;
Pavel Raiskup ddd988
 extern int delayed_seek_count;
Pavel Raiskup ddd988
 #ifdef DEBUG_CPIO
Pavel Raiskup ddd988
 extern int debug_flag;
Pavel Raiskup ddd988
diff --git a/src/global.c b/src/global.c
Pavel Raiskup ddd988
index cff9720..336941e 100644
Pavel Raiskup ddd988
--- a/src/global.c
Pavel Raiskup ddd988
+++ b/src/global.c
Pavel Raiskup ddd988
@@ -144,7 +144,7 @@ char *archive_name = NULL;
Pavel Raiskup ddd988
 char *rsh_command_option = NULL;
Pavel Raiskup fff689
 
Pavel Raiskup ddd988
 /* CRC checksum.  */
Pavel Raiskup ddd988
-unsigned long crc;
Pavel Raiskup ddd988
+uint32_t crc;
Pavel Raiskup fff689
 
Pavel Raiskup ddd988
 /* Input and output buffers.  */
Pavel Raiskup ddd988
 char *input_buffer, *output_buffer;