[PATCH] 64 bit clean compilation patches

Shaw Vrana shaw at vranix.com
Tue Nov 22 05:12:56 EST 2005


Hello All,

Attached is a patch against the portable openssh sources found at 
openssh at anoncvs.at.openbsd.org:/cvs.  The majority of the size of the 
patch comes from changes to the build system to supply the required 
format specifications if they are not provided by the OS.  These patches 
remove the following warnings found during a 64-bit compile:

hostfile.c: In function `extract_salt':
hostfile.c:92: warning: unsigned int format, different type arg (arg 2)
progressmeter.c: In function `format_rate':
progressmeter.c:91: warning: long long int format, off_t arg (arg 4)
progressmeter.c:91: warning: long long int format, off_t arg (arg 5)
progressmeter.c:91: warning: long long int format, off_t arg (arg 4)
progressmeter.c:91: warning: long long int format, off_t arg (arg 5)
progressmeter.c: In function `format_size':
progressmeter.c:104: warning: long long int format, off_t arg (arg 4)
progressmeter.c:104: warning: long long int format, off_t arg (arg 4)
loginrec.c: In function `lastlog_get_entry':
loginrec.c:1592: warning: int format, different type arg (arg 4)
loginrec.c: In function `record_failed_login':
loginrec.c:1655: warning: passing arg 3 of `getpeername' from 
incompatible pointer typescp.c:
loginrec.c:1656: warning: passing arg 2 of `ipv64_normalise_mapped' from 
incompatible pointer type
In function `source':
scp.c:566: warning: long long int format, __off_t arg (arg 5)
scp.c:566: warning: long long int format, __off_t arg (arg 5)

These patches were tested on a 32-bit GNU/Linux machine with inttypes.h, 
32-bit FreeBSD without inttypes.h, and a 64-bit GNU/Linux machine with 
inttypes.h.

Please apply!

Shaw


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: diff.txt
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20051121/7d9d2c65/attachment.txt 


More information about the openssh-unix-dev mailing list