$NetBSD: patch-arj__proc.c,v 1.1 2022/01/08 14:43:09 tnn Exp $ debian/001_arches_align.patch Description: Correct build failure on ia64 due to unaligned memory access. Author: Guillem Jover Origin: vendor Forwarded: no Last-Update: 2008-06-16 debian/003_64_bit_clean.patch Description: Make code 64-bit clean. Author: Guillem Jover Origin: vendor Bug-Debian: https://bugs.debian.org/339815 Forwarded: no Last-Update: 2005-11-24 debian/self_integrity_64bit.patch Description: Fix arj self-integrity check on 64-bit systems Author: B Watson Origin: other, http://slackbuilds.org/cgit/slackbuilds/tree/system/arj/patches/SBo_integrity_64bit.patch Forwarded: no Reviewed-By: Guillem Jover Last-Update: 2014-08-06 --- arj_proc.c.orig 2022-01-08 14:35:06.610901643 +0000 +++ arj_proc.c @@ -586,7 +586,7 @@ int search_for_extension(char *name, cha /* Returns the exact amount of data that could be safely written to the destination volume */ -unsigned long get_volfree(unsigned int increment) +unsigned long get_volfree(unsigned long increment) { unsigned long pvol; unsigned int arjsec_overhead; @@ -606,7 +606,7 @@ unsigned long get_volfree(unsigned int i remain=volume_limit-ftell(aostream)-pvol-(long)arjsec_overhead- (long)out_bytes-(long)cpos-(long)ext_voldata- MULTIVOLUME_RESERVE-t_volume_offset; - return((unsigned long)min(remain, (unsigned long)increment)); + return((unsigned long)min(remain, increment)); } /* Performs various checks when multivolume data is packed to predict an @@ -2467,14 +2467,14 @@ static int get_str_from_jq() *tsptr='\0'; endptr=tsptr; tsptr=sptr; - while((unsigned int)tsptr<(unsigned int)endptr&&patterns>8 , p+1); @@ -2932,7 +2932,7 @@ void mput_word(unsigned int w, char FAR /* Model-independent routine to store 4 bytes in far RAM */ -void mput_dword(unsigned long d, char FAR *p) +void mput_dword(uint32_t d, char FAR *p) { mput_word(d&0xFFFF, p); mput_word(d>>16 , p+2);