X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fproto.c;h=6fa243ffd624fdb3a48b750710fb67d49da71703;hp=ee1c400dac67002a31a221e551b58f1b9fbf3d35;hb=3ab2d089f3eb34562bc2c9ce4310869b46c69d70;hpb=de7ef2a0fdcbcddfd35ecb8ee2804e1ca0968454 diff --git a/daemon/proto.c b/daemon/proto.c index ee1c400..6fa243f 100644 --- a/daemon/proto.c +++ b/daemon/proto.c @@ -395,7 +395,7 @@ receive_file (receive_cb cb, void *opaque) } /* Send a cancellation flag back to the library. */ -void +int cancel_receive (void) { XDR xdr; @@ -408,11 +408,11 @@ cancel_receive (void) if (xwrite (sock, fbuf, sizeof fbuf) == -1) { perror ("write to socket"); - return; + return -1; } /* Keep receiving chunks and discarding, until library sees cancel. */ - (void) receive_file (NULL, NULL); + return receive_file (NULL, NULL); } static int check_for_library_cancellation (void);