diff options
author | Andreas Schneider <anschneider@suse.de> | 2008-07-16 12:05:52 +0200 |
---|---|---|
committer | Derrell Lipman <derrell.lipman@unwireduniverse.com> | 2008-07-16 10:41:43 -0400 |
commit | 43892abff68054928312fd54e50d5bdebe604b63 (patch) | |
tree | 3a7a4696795a68e1c1e6f2d535839a7ca1220ea4 /source3/include/libsmbclient.h | |
parent | db7bff1babdb556efa54b7ff02d66fb50e833a30 (diff) | |
download | samba-43892abff68054928312fd54e50d5bdebe604b63.tar.gz |
The buf in the smbclient write function should be const.
As we try to provide POSIX function, we should use const like all other
POSIX function.
Signed-off-by: Andreas Schneider <anschneider@suse.de>
Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
(This used to be commit 36e5df59544de9df140ca40ad0efd77afd8e1468)
Diffstat (limited to 'source3/include/libsmbclient.h')
-rw-r--r-- | source3/include/libsmbclient.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/include/libsmbclient.h b/source3/include/libsmbclient.h index 5fe4fa8c60b..a8b27b709e4 100644 --- a/source3/include/libsmbclient.h +++ b/source3/include/libsmbclient.h @@ -796,7 +796,7 @@ void smbc_setFunctionRead(SMBCCTX *c, smbc_read_fn fn); typedef ssize_t (*smbc_write_fn)(SMBCCTX *c, SMBCFILE *file, - void *buf, + const void *buf, size_t count); smbc_write_fn smbc_getFunctionWrite(SMBCCTX *c); void smbc_setFunctionWrite(SMBCCTX *c, smbc_write_fn fn); @@ -1240,7 +1240,7 @@ ssize_t smbc_read(int fd, void *buf, size_t bufsize); * @see smbc_open(), smbc_read() * */ -ssize_t smbc_write(int fd, void *buf, size_t bufsize); +ssize_t smbc_write(int fd, const void *buf, size_t bufsize); /**@ingroup file |