diff options
author | Jeremy Allison <jra@samba.org> | 2007-11-03 15:12:42 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-11-03 15:12:42 -0700 |
commit | 73d407968002587eadd0ff13eb413ddf07c78771 (patch) | |
tree | e1656e24e0298ee3b9097c1904618955535233e4 /source3/smbd/oplock_irix.c | |
parent | 705ba0d5b5156075d841ce120cea967f665f52d6 (diff) | |
download | samba-73d407968002587eadd0ff13eb413ddf07c78771.tar.gz samba-73d407968002587eadd0ff13eb413ddf07c78771.tar.bz2 samba-73d407968002587eadd0ff13eb413ddf07c78771.zip |
Remove the smb_read_error global variable and replace
it with accessor functions. "One global or pstring a day...." :-).
Jeremy.
(This used to be commit d50d14c300abc83b7015718ec48acc8b3227a273)
Diffstat (limited to 'source3/smbd/oplock_irix.c')
-rw-r--r-- | source3/smbd/oplock_irix.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/smbd/oplock_irix.c b/source3/smbd/oplock_irix.c index 8dd4e27973..b8d49f03a1 100644 --- a/source3/smbd/oplock_irix.c +++ b/source3/smbd/oplock_irix.c @@ -104,7 +104,6 @@ static bool irix_oplocks_available(void) static files_struct *irix_oplock_receive_message(fd_set *fds) { - extern int smb_read_error; oplock_stat_t os; char dummy; struct file_id fileid; @@ -122,7 +121,7 @@ static files_struct *irix_oplock_receive_message(fd_set *fds) DEBUG(0,("irix_oplock_receive_message: read of kernel " "notification failed. Error was %s.\n", strerror(errno) )); - smb_read_error = READ_ERROR; + set_smb_read_error(SMB_READ_ERROR); return NULL; } @@ -142,7 +141,7 @@ static files_struct *irix_oplock_receive_message(fd_set *fds) */ return NULL; } - smb_read_error = READ_ERROR; + set_smb_read_error(SMB_READ_ERROR); return NULL; } |