The compatibility function also should have a const buffer pointer
authorDerrell Lipman <derrell.lipman@unwireduniverse.com>
Wed, 16 Jul 2008 14:45:09 +0000 (10:45 -0400)
committerDerrell Lipman <derrell.lipman@unwireduniverse.com>
Wed, 16 Jul 2008 14:45:09 +0000 (10:45 -0400)
(This used to be commit b731447ec539d454002300fd755dddcad2351d6c)

source3/libsmb/libsmb_compat.c

index 9ef5e51fa91bd9787336a31bac770d15d58831a6..ad8fd922db2b6da1dcb0412a3cb84ba044d1f196 100644 (file)
@@ -207,7 +207,7 @@ smbc_read(int fd,
 
 ssize_t
 smbc_write(int fd,
-           void *buf,
+           const void *buf,
            size_t bufsize)
 {
        SMBCFILE * file = find_fd(fd);