From: "Richard W.M. Jones" <rjones(a)redhat.com>
(cherry picked from commit d0a205778698ea3b70623ad73302e739cf631d3c)
---
src/command.c | 4 ++--
src/guestfs-internal.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/command.c b/src/command.c
index e674cef..7c0da6e 100644
--- a/src/command.c
+++ b/src/command.c
@@ -674,9 +674,9 @@ guestfs___cmd_close (struct command *cmd)
}
void
-guestfs___cleanup_cmd_close (void *ptr)
+guestfs___cleanup_cmd_close (struct command **ptr)
{
- guestfs___cmd_close (* (struct command **) ptr);
+ guestfs___cmd_close (*ptr);
}
/* Deal with buffering stdout for the callback. */
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h
index 1c3fea9..1d08375 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -741,6 +741,6 @@ extern void guestfs___cmd_close (struct command *);
#else
#define CLEANUP_CMD_CLOSE
#endif
-extern void guestfs___cleanup_cmd_close (void *ptr);
+extern void guestfs___cleanup_cmd_close (struct command **);
#endif /* GUESTFS_INTERNAL_H_ */
--
1.8.3.1