maint: remove unnecessary include of openat.h
[libguestfs.git] / daemon / augeas.c
index 7de3624..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
@@ -376,7 +376,7 @@ do_aug_ls (const char *path)
   if (matches == NULL)
     return NULL;               /* do_aug_match has already sent the error */
 
-  sort_strings (matches, count_strings (matches));
+  sort_strings (matches, count_strings ((void *) matches));
   return matches;              /* Caller frees. */
 #else
   reply_with_error ("%s is not available", __func__);