| Summary: | warning: comparison between signed and unsigned | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Carlo Marcelo Arenas Belon <carenas> | ||||||
| Component: | scp | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | normal | CC: | dtucker | ||||||
| Priority: | P2 | ||||||||
| Version: | 4.3p2 | ||||||||
| Hardware: | amd64 | ||||||||
| OS: | All | ||||||||
| URL: | http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/scp.c.diff?r1=1.121&r2=1.122&f=h | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 1452 | ||||||||
| Attachments: |
|
||||||||
|
Description
Carlo Marcelo Arenas Belon
2006-05-22 13:31:49 AEST
Created attachment 1142 [details]
reverting first snippet for scp.c version 1.122
compiling without warnings and validated for OpenBSD/amd64, OpenBSD/i386 and Gentoo Linux 2006.0/x86_64
Comment on attachment 1142 [details] reverting first snippet for scp.c version 1.122 >- size_t result; >+ off_t i, amt, result, statbytes; I don't think that's the right way forward since later there is: result = atomicio(read, fd, bp->buf, amt) and atomicio now returns a size_t. Instead, I think we should be changing the progressmeter interface to u_int64_t from off_t (since ultimately, the size it operates on is fixed at 64 bits by the packet format of the sftp spec). This would change "amt" and also fix the warning. There's an old bug for this (#842) but I suspect the diff will need some tweaking. Err, ignore comment #2. It's a similar but unrelated issue (but in the same chunk of code). The code in question has been removed from the current development version so these warnings should now be gone. Could you please confirm by testing a development snapshot from http://www.mindrot.org/openssh_snap/ ? Thanks. Created attachment 1519 [details]
make amt size_t and add cast to prevent warnings.
I've now got access to an OpenBSD/amd64 system and I see that this is still present. This patch should fix it.
This has been applied and will be in the next release. Thanks. Mass update RESOLVED->CLOSED after release of openssh-5.1 |