Date: Thu, 23 Jan 2003 08:17:25 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Richard Dawe cc: djgpp-workers AT delorie DOT com Subject: Re: ssize_t: int -> signed long [PATCH] In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 22 Jan 2003, Richard Dawe wrote: > * The _cnt member of FILE is now a long. In src/libc/ansi/stdio/filbuf.c > &f->_cnt is passed to __libc_read_termios_hook, which expects a ssize_t > argument. &f->_cnt being an int * cannot be converted without typecasts > to ssize_t *. Hence I changed f->_cnt to be a long. Why not make it ssize_t? That way, we avoid any breakage in the future, if ssize_t is changed. > * In write() the return value 'rv' was an int. But it's used to store > both an int and a ssize_t. Now they are not the same as int, > two variables are needed - 'i_rv' and 'ss_rv' for int and ssize_t > respectively. Again, why not change the return value to ssize_t? Will that break anything?