git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be4cb4a
)
s3:torture: Fix size types in make_nonstd_fd()
author
Andreas Schneider
<asn@samba.org>
Thu, 22 Mar 2018 17:36:13 +0000
(18:36 +0100)
committer
Jeremy Allison
<jra@samba.org>
Tue, 3 Apr 2018 18:20:11 +0000
(20:20 +0200)
This fixes compilation with -Wstrict-overflow=2.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/torture/wbc_async.c
patch
|
blob
|
history
diff --git
a/source3/torture/wbc_async.c
b/source3/torture/wbc_async.c
index 1a7495acad868cfeddf576194e04bd4129049673..a9020ddcda5a85cdf29ad9d12ed7eec3d9207b13 100644
(file)
--- a/
source3/torture/wbc_async.c
+++ b/
source3/torture/wbc_async.c
@@
-98,10
+98,10
@@
struct wb_context {
static int make_nonstd_fd(int fd)
{
-
in
t i;
+
size_
t i;
int sys_errno = 0;
int fds[3];
-
in
t num_fds = 0;
+
size_
t num_fds = 0;
if (fd == -1) {
return -1;