Skip to content

Instantly share code, notes, and snippets.

@shulima
Created March 25, 2015 22:27
Show Gist options
  • Save shulima/65b6445698c4d61d7314 to your computer and use it in GitHub Desktop.
Save shulima/65b6445698c4d61d7314 to your computer and use it in GitHub Desktop.
Add third parameter to xdrproc_t callbacks
diff --git a/src/proto.c b/src/proto.c
index 8001c8c..53d1d6b 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -252,7 +252,7 @@ guestfs___send (guestfs_h *g, int proc_nr,
* have no parameters.
*/
if (xdrp) {
- if (!(*xdrp) (&xdr, args)) {
+ if (!(*xdrp) (&xdr, args, 0)) {
error (g, _("dispatch failed to marshal args"));
return -1;
}
@@ -681,7 +681,7 @@ guestfs___recv (guestfs_h *g, const char *fn,
return -1;
}
} else {
- if (xdrp && ret && !xdrp (&xdr, ret)) {
+ if (xdrp && ret && !xdrp (&xdr, ret, 0)) {
error (g, "%s: failed to parse reply", fn);
xdr_destroy (&xdr);
return -1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment