g10: Fix build with disabled kbnode cache.
authorJustus Winter <justus@g10code.com>
Fri, 1 Jul 2016 10:50:29 +0000 (12:50 +0200)
committerJustus Winter <justus@g10code.com>
Fri, 1 Jul 2016 10:50:29 +0000 (12:50 +0200)
* g10/kbnode.c (release_unused_nodes): Fix build with disabled kbnode
cache.

Signed-off-by: Justus Winter <justus@g10code.com>
g10/kbnode.c

index a1d1f3d..e814fa8 100644 (file)
 static int cleanup_registered;
 static KBNODE unused_nodes;
 
-#if USE_UNUSED_NODES
 static void
 release_unused_nodes (void)
 {
+#if USE_UNUSED_NODES
   while (unused_nodes)
     {
       kbnode_t next = unused_nodes->next;
       xfree (unused_nodes);
       unused_nodes = next;
     }
-}
 #endif /*USE_UNUSED_NODES*/
+}
 
 
 static kbnode_t