1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
From 8537dcafb12be4d986b571f1e1d9f3ceecdc8e63 Mon Sep 17 00:00:00 2001
From: Tim Orling <timothy.t.orling@linux.intel.com>
Date: Sun, 7 Jan 2018 21:29:12 -0800
Subject: [PATCH] stress-fcntl.c: fix syntax errors
Signed-off-by: Tim Orling <timothy.t.orling@linux.intel.com>
Upstream-status: Accepted
(commit 61d93d6857256cd49df6a6302caf6e7bb69b0f46)
---
stress-fcntl.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/stress-fcntl.c b/stress-fcntl.c
index 7c15d28..b7eade2 100644
--- a/stress-fcntl.c
+++ b/stress-fcntl.c
@@ -173,7 +173,7 @@ static int do_fcntl(const args_t *args, const int fd)
owner.pid = getpgrp();
ret = fcntl(fd, F_SETOWN_EX, &owner);
check_return(args, ret, "F_SETOWN_EX, F_OWNER_PGRP");
-#else if defined(HAVE_GETPGRP) && defined(F_OWNER_GID)
+#elif defined(HAVE_GETPGRP) && defined(F_OWNER_GID)
owner.type = F_OWNER_GID;
owner.pid = getpgrp();
ret = fcntl(fd, F_SETOWN_EX, &owner);
@@ -202,7 +202,7 @@ static int do_fcntl(const args_t *args, const int fd)
owner.type = F_OWNER_PGRP;
ret = fcntl(fd, F_GETOWN_EX, &owner);
check_return(args, ret, "F_GETOWN_EX, F_OWNER_PGRP");
-#ele if defined(F_OWNER_GID)
+#elif defined(F_OWNER_GID)
owner.type = F_OWNER_GID;
ret = fcntl(fd, F_GETOWN_EX, &owner);
check_return(args, ret, "F_GETOWN_EX, F_OWNER_GID");
@@ -436,7 +436,7 @@ ofd_lock_abort: { /* Nowt */ }
#endif
};
- ret = fcntl(fd, F_GET_FILE_RW_HINT, &hint)
+ ret = fcntl(fd, F_GET_FILE_RW_HINT, &hint);
if (ret == 0) {
for (i = 0; i < SIZEOF_ARRAY(hints); i++) {
hint = hints[i];
--
2.14.3
|