summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/inspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspect.c b/src/inspect.c
index 60c7dd44..117f57a7 100644
--- a/src/inspect.c
+++ b/src/inspect.c
@@ -542,7 +542,7 @@ guestfs__inspect_get_hostname (guestfs_h *g, const char *root)
/* XXX These functions should be in an optgroup. */
#define NOT_IMPL(r) \
- error (g, _("inspection API not available since this version of libguestfs was compiled without the hivex library")); \
+ guestfs_error_errno (g, ENOTSUP, _("inspection API not available since this version of libguestfs was compiled without the hivex library")); \
return r
char **