properly check for HAVE_FALLOC_PH in both occurrences
authorT.M. Abraham <tabraham@novell.com>
Sat, 7 Jan 2012 02:58:55 +0000 (21:58 -0500)
committerT.M. Abraham <tabraham@novell.com>
Sat, 7 Jan 2012 02:58:55 +0000 (21:58 -0500)
nbd-server.c

index 0ecf0e88c1e860f4b470a5db96f255de649b8161..2cd066de367bf89267468143dd4fe8f4a9749761 100644 (file)
@@ -1461,7 +1461,7 @@ int expflush(CLIENT *client) {
  * file to resparsify stuff that isn't needed anymore (see NBD_CMD_TRIM)
  */
 int exptrim(struct nbd_request* req, CLIENT* client) {
-#ifdef HAVE_FALLOC_PH
+#if HAVE_FALLOC_PH
        FILE_INFO prev = g_array_index(client->export, FILE_INFO, 0);
        FILE_INFO cur = prev;
        int i = 1;