mirror of
https://github.com/samba-team/samba.git
synced 2024-12-25 23:21:54 +03:00
Make get_srv_read_error static to process.c
This commit is contained in:
parent
ba771bd858
commit
9e2947039e
@ -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;
|
||||
}
|
||||
|
@ -3516,7 +3516,7 @@ 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())
|
||||
if (read_data(smbd_server_fd(), buf+4, numtowrite, NULL)
|
||||
!= numtowrite ) {
|
||||
DEBUG(0,("reply_writebraw: Oversize secondary write "
|
||||
"raw read failed (%s). Terminating\n",
|
||||
|
Loading…
Reference in New Issue
Block a user