More POSIX like funciton for smbc_write

Volker Lendecke Volker.Lendecke at SerNet.DE
Wed Jul 16 14:17:58 GMT 2008

On Wed, Jul 16, 2008 at 10:05:50AM -0400, Derrell Lipman wrote:
> On Wed, Jul 16, 2008 at 6:12 AM, Andreas Schneider <anschneider at>
> wrote:
> > attached is a patch to use const for the buffer you pass to the write
> > function. It is the same for write(2).
> >
> I agree that it "should" be const.  I wonder, though, if it's appropriate to
> change it now since it is an interface change that will cause warnings with
> all compilations of existing programs.  We don't really gain anything by
> making this change now, but I'm open to changing it in 3.3 if people think
> it's appropriate.  If we were to do this change, we should go through all of
> the libsmbclient functions and ensure that all of them use the same
> signatures as their POSIX companions.

What is the warning that you expect?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :

More information about the samba-technical mailing list