Fix compilation when Augeas is not present.
authorRichard Jones <rjones@redhat.com>
Tue, 10 Nov 2009 12:10:05 +0000 (12:10 +0000)
committerRichard Jones <rjones@redhat.com>
Tue, 10 Nov 2009 16:32:20 +0000 (16:32 +0000)
It would complain that NEED_AUG macro was defined but not used.

daemon/augeas.c

index 3628219..b56012c 100644 (file)
@@ -36,7 +36,6 @@
  * considerably.
  */
 static augeas *aug = NULL;
-#endif
 
 #define NEED_AUG(errcode)                                              \
   do {                                                                 \
@@ -46,6 +45,7 @@ static augeas *aug = NULL;
     }                                                                  \
   }                                                                    \
   while (0)
+#endif
 
 /* We need to rewrite the root path so it is based at /sysroot. */
 int