On Fri, Nov 03, 2006 at 03:28:00PM +0000, Vitaly Alexeev wrote:
> - ssize_t bytes_read = read(_fd, (void*)buf, bytes_needed);
> + size_t bytes_read = read(_fd, (void*)buf, bytes_needed);
From "Linux Programmer's Manual" - READ(2):
SYNOPSIS
#include
ssize_t read(int fd, void *buf, size_t count);
CONFORMING TO
SVr4, SVID, AT&T, POSIX, X/OPEN, BSD 4.3
RETURN VALUE
[...]
On error, -1 is returned, and errno is set appropriately.
Does 'read' return an unsigned type on your system instead ?
--strk;
No, I have made a bug (win32 has no type ssize_t and I have mechanically replaced ssize_t on size_t)
This
size_t bytes_read = read (_fd, (void *) buf, bytes_needed);
should be replaced on
int bytes_read = read (_fd, (void *) buf, bytes_needed);
Sorry.
Vitaly.
Вы уже с Yahoo!?
Испытайте обновленную и улучшенную Yahoo! Почту!
_______________________________________________ Gnash-commit mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnash-commit
