git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f04687
)
s3:vfs:preopen: fix O3 error unused result of write
author
Michael Adam
<obnox@samba.org>
Tue, 5 Apr 2016 20:22:47 +0000
(22:22 +0200)
committer
Michael Adam
<obnox@samba.org>
Thu, 12 May 2016 22:16:16 +0000
(
00:16
+0200)
(void) cast is not enough.
Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Christian Ambach <ambi@samba.org>
source3/modules/vfs_preopen.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_preopen.c
b/source3/modules/vfs_preopen.c
index b67aad86b5575490e4431bc0bc8e72bb57a69700..8bf30b6745ee11fa2c59443071c2ad9c02046f47 100644
(file)
--- a/
source3/modules/vfs_preopen.c
+++ b/
source3/modules/vfs_preopen.c
@@
-21,6
+21,7
@@
#include "includes.h"
#include "system/filesys.h"
#include "smbd/smbd.h"
+#include "lib/util/sys_rw.h"
#include "lib/util/sys_rw_data.h"
struct preopen_state;
@@
-185,7
+186,7
@@
static bool preopen_helper_open_one(int sock_fd, char **pnamebuf,
close(fd);
done:
-
(void)write
(sock_fd, &c, 1);
+
sys_write_v
(sock_fd, &c, 1);
return true;
}