X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Faugeas.c;h=b56012cd8af71f4001d7596f1dd15985f7cde0ea;hb=c477e2fb78347728aaacbbc89666dcda1481a4b9;hp=7de362490abdf231486e9fa060b3761a90c32f6a;hpb=84fc760439e82e6b3616abd0d1f9bd7d7eb01ec0;p=libguestfs.git diff --git a/daemon/augeas.c b/daemon/augeas.c index 7de3624..b56012c 100644 --- a/daemon/augeas.c +++ b/daemon/augeas.c @@ -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__);