git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in description of echo-daemon command.
[libguestfs.git]
/
daemon
/
proto.c
diff --git
a/daemon/proto.c
b/daemon/proto.c
index
ee1c400
..
6fa243f
100644
(file)
--- 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. */
}
/* Send a cancellation flag back to the library. */
-void
+int
cancel_receive (void)
{
XDR xdr;
cancel_receive (void)
{
XDR xdr;
@@
-408,11
+408,11
@@
cancel_receive (void)
if (xwrite (sock, fbuf, sizeof fbuf) == -1) {
perror ("write to socket");
if (xwrite (sock, fbuf, sizeof fbuf) == -1) {
perror ("write to socket");
- return;
+ return
-1
;
}
/* Keep receiving chunks and discarding, until library sees cancel. */
}
/* 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);
}
static int check_for_library_cancellation (void);