gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnash-commit] gnash/libbase container.h noseek_fd_adapter.cpp


From: Vitaly Alexeev
Subject: Re: [Gnash-commit] gnash/libbase container.h noseek_fd_adapter.cpp
Date: Sat, 4 Nov 2006 19:03:48 +0300 (MSK)

strk <address@hidden> wrote:
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! Почту!
reply via email to

[Prev in Thread] Current Thread [Next in Thread]