1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

Make get_srv_read_error static to process.c

This commit is contained in:
Volker Lendecke 2008-01-25 23:57:20 +01:00
parent ba771bd858
commit 9e2947039e
2 changed files with 3 additions and 3 deletions

View File

@ -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;
}

View File

@ -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) ));