svn commit: r221993 - in head/sys: kern sys

Kostik Belousov kostikbel at gmail.com
Mon May 16 21:20:06 UTC 2011


On Mon, May 16, 2011 at 04:18:40PM +0000, Poul-Henning Kamp wrote:
> Author: phk
> Date: Mon May 16 16:18:40 2011
> New Revision: 221993
> URL: http://svn.freebsd.org/changeset/base/221993
> 
> Log:
>   Change the length quantities of sbufs to be ssize_t rather than int.
>   
>   Constify a couple of arguments.

> Modified: head/sys/sys/sbuf.h
> ==============================================================================
> --- head/sys/sys/sbuf.h	Mon May 16 15:59:50 2011	(r221992)
> +++ head/sys/sys/sbuf.h	Mon May 16 16:18:40 2011	(r221993)
> @@ -44,8 +44,8 @@ struct sbuf {
>  	sbuf_drain_func	*s_drain_func;	/* drain function */
>  	void		*s_drain_arg;	/* user-supplied drain argument */
>  	int		 s_error;	/* current error code */
> -	int		 s_size;	/* size of storage buffer */
> -	int		 s_len;		/* current length of string */
> +	ssize_t		 s_size;	/* size of storage buffer */
> +	ssize_t		 s_len;		/* current length of string */
struct sbuf is exposed to the libsubf.so consumers.
I think that libsbuf.so version shall be bumped (since no symver
compat can be provided, due to lack of versioning for libsbuf).

The bump was also needed after the r212367. Lets do one for two changes.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/svn-src-head/attachments/20110516/1d967041/attachment.pgp


More information about the svn-src-head mailing list