summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ctdb/utils/ping_pong/ping_pong.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ctdb/utils/ping_pong/ping_pong.c b/ctdb/utils/ping_pong/ping_pong.c
index fd0e99b239..90692e59ec 100644
--- a/ctdb/utils/ping_pong/ping_pong.c
+++ b/ctdb/utils/ping_pong/ping_pong.c
@@ -115,7 +115,7 @@ static void ping_pong(int fd, int num_locks)
unsigned char c;
if (use_mmap) {
c = p[i];
- } if (pread(fd, &c, 1, i) != 1) {
+ } else if (pread(fd, &c, 1, i) != 1) {
printf("read failed at %d\n", i);
}
incr = c - val[i];