passthrough_ll: fix fallocate variant ifdefs (#449)
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Mon, 9 Sep 2019 09:14:02 +0000 (10:14 +0100)
committerNikolaus Rath <Nikolaus@rath.org>
Mon, 9 Sep 2019 09:14:02 +0000 (10:14 +0100)
commit7c1e09dbc2e4215969425e50ec03889d19a926d4
tree3aaf07b544299f9d19a216cdf21ff730913e9e8a
parent317181e8ea1b3406919b946ca5524f8b9f34817d
passthrough_ll: fix fallocate variant ifdefs (#449)

If fallocate isn't available we incorrectly check for the value of
HAVE_POSIX_FALLOCATE rather than it being defined.
We also fail to initialise 'err' in the case where neither are defined.

Fixes: 5fc562c90d7925963467 ("Add fallocate and use it instead of ...")
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
example/passthrough_ll.c