git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1346575
)
Use GUESTFS_LAUNCH_FLAG in the daemon, and use correct uint32_t.
author
Richard Jones
<rjones@redhat.com>
Sun, 19 Apr 2009 13:51:50 +0000
(14:51 +0100)
committer
Richard Jones
<rjones@redhat.com>
Sun, 19 Apr 2009 13:51:50 +0000
(14:51 +0100)
daemon/guestfsd.c
patch
|
blob
|
history
diff --git
a/daemon/guestfsd.c
b/daemon/guestfsd.c
index
c701f19
..
c3f5e82
100644
(file)
--- a/
daemon/guestfsd.c
+++ b/
daemon/guestfsd.c
@@
-63,7
+63,7
@@
main (int argc, char *argv[])
struct addrinfo *res, *rr;
struct addrinfo hints;
XDR xdr;
- u
nsigned
len;
+ u
int32_t
len;
for (;;) {
c = getopt_long (argc, argv, options, long_options, NULL);
@@
-163,7
+163,7
@@
main (int argc, char *argv[])
/* Send the magic length message which indicates that
* userspace is up inside the guest.
*/
- len =
0xf5f55ff5
;
+ len =
GUESTFS_LAUNCH_FLAG
;
xdrmem_create (&xdr, buf, sizeof buf, XDR_ENCODE);
if (!xdr_uint32_t (&xdr, &len)) {
fprintf (stderr, "xdr_uint32_t failed\n");