summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2020-09-21 07:48:43 +0200
committerKarolin Seeger <kseeger@samba.org>2021-02-26 10:57:19 +0000
commit9806b67ee4c2dd4e1ef42b03517c0ffda40f2ace (patch)
treedaee8ed45dec22409ceb41e3e88fcc3b7fbfead3 /source3
parent331e4d8363fee023b9ac56137e48592a9e1323d7 (diff)
downloadsamba-9806b67ee4c2dd4e1ef42b03517c0ffda40f2ace.tar.gz
s3: fix fcntl waf configure check
RN: Fix fcntl waf configure check BUG: https://bugzilla.samba.org/show_bug.cgi?id=14503 Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Mon Sep 21 07:26:54 UTC 2020 on sn-devel-184 (cherry picked from commit 454ccd986b61799908a6898a55d0480911f15306) Autobuild-User(v4-13-test): Karolin Seeger <kseeger@samba.org> Autobuild-Date(v4-13-test): Fri Feb 26 10:57:20 UTC 2021 on sn-devel-184
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/wscript b/source3/wscript
index 9920432a360..563854c1d23 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -1244,7 +1244,7 @@ err:
int main(void)
{
- uint64_t *hint, get_hint;
+ uint64_t hint, get_hint;
int fd;
fd = open(DATA, O_RDONLY | O_CREAT | O_EXCL);
@@ -1252,8 +1252,8 @@ int main(void)
goto err;
}
- *hint = RWH_WRITE_LIFE_SHORT;
- int ret = fcntl(fd, F_SET_RW_HINT, hint);
+ hint = RWH_WRITE_LIFE_SHORT;
+ int ret = fcntl(fd, F_SET_RW_HINT, &hint);
if (ret == -1) {
goto err;
}
@@ -1267,8 +1267,8 @@ int main(void)
goto err;
}
- *hint = RWH_WRITE_LIFE_EXTREME;
- ret = fcntl(fd, F_SET_FILE_RW_HINT, hint);
+ hint = RWH_WRITE_LIFE_EXTREME;
+ ret = fcntl(fd, F_SET_FILE_RW_HINT, &hint);
if (ret == -1) {
goto err;
}