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:
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,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) ));
|
||||
|
Loading…
Reference in New Issue
Block a user