From: "Richard W.M. Jones" <rjones(a)redhat.com>
(cherry picked from commit d0a205778698ea3b70623ad73302e739cf631d3c)
(cherry picked from commit db41261968c859d12f3217efe575b53963d6309a)
---
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 380bc16..38e1aaf 100644
--- a/src/command.c
+++ b/src/command.c
@@ -680,9 +680,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 7c37e57..c6b64fd 100644
--- a/src/guestfs-internal.h
+++ b/src/guestfs-internal.h
@@ -621,6 +621,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