diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-11-09 18:47:57 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-11-09 19:51:08 +0000 |
commit | b460d9f32eb527bc7aad4894a5f85c4e69366104 (patch) | |
tree | aeacce4c04338d8327f2df1a7154e2e4677eb71d /src/inspect-fs-windows.c | |
parent | a3b6751863b4e7e620dd1b75b4a8d8187d2069a5 (diff) | |
download | libguestfs-b460d9f32eb527bc7aad4894a5f85c4e69366104.tar.gz libguestfs-b460d9f32eb527bc7aad4894a5f85c4e69366104.tar.xz libguestfs-b460d9f32eb527bc7aad4894a5f85c4e69366104.zip |
lib: Modify library code to use guestfs_{push,pop}_error_handler.
This is less efficient than directly manipulating g->error_cb, but
easier to maintain.
Diffstat (limited to 'src/inspect-fs-windows.c')
-rw-r--r-- | src/inspect-fs-windows.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/inspect-fs-windows.c b/src/inspect-fs-windows.c index af75871d..af4dcfdf 100644 --- a/src/inspect-fs-windows.c +++ b/src/inspect-fs-windows.c @@ -564,10 +564,12 @@ map_registry_disk_blob (guestfs_h *g, const char *blob) char * guestfs___case_sensitive_path_silently (guestfs_h *g, const char *path) { - guestfs_error_handler_cb old_error_cb = g->error_cb; - g->error_cb = NULL; - char *ret = guestfs_case_sensitive_path (g, path); - g->error_cb = old_error_cb; + char *ret; + + guestfs_push_error_handler (g, NULL, NULL); + ret = guestfs_case_sensitive_path (g, path); + guestfs_pop_error_handler (g); + return ret; } |