summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-01-25 23:57:20 +0100
committerVolker Lendecke <vl@samba.org>2008-02-02 11:03:23 +0100
commit21e7344d2f45416ea996f88be72de1a923c0ee9c (patch)
treec4305e0c5ce68c6fcf5eaf3cce66040bb357cf40 /source3
parent88c27f83d449fa20cba47cbf0a5dbaedc99859d8 (diff)
downloadsamba-21e7344d2f45416ea996f88be72de1a923c0ee9c.tar.gz
samba-21e7344d2f45416ea996f88be72de1a923c0ee9c.tar.bz2
samba-21e7344d2f45416ea996f88be72de1a923c0ee9c.zip
Make get_srv_read_error static to process.c
(This used to be commit 9e2947039ef70cab8bbd6027182d9c721eac3194)
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/process.c2
-rw-r--r--source3/smbd/reply.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/smbd/process.c b/source3/smbd/process.c
index 83e51e3892..f5a3186e5e 100644
--- a/source3/smbd/process.c
+++ b/source3/smbd/process.c
@@ -43,7 +43,7 @@ extern int max_send;
/* Accessor function for smb_read_error for smbd functions. */
-enum smb_read_errors *get_srv_read_error(void)
+static enum smb_read_errors *get_srv_read_error(void)
{
return &smb_read_error;
}
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index 46c14d158e..f371dde705 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -3516,8 +3516,8 @@ void reply_writebraw(struct smb_request *req)
(int)tcount,(int)nwritten,(int)numtowrite));
}
- if (read_data(smbd_server_fd(), buf+4, numtowrite,get_srv_read_error())
- != numtowrite ) {
+ if (read_data(smbd_server_fd(), buf+4, numtowrite, NULL)
+ != numtowrite ) {
DEBUG(0,("reply_writebraw: Oversize secondary write "
"raw read failed (%s). Terminating\n",
strerror(errno) ));