diff options
author | Richard Jones <rjones@redhat.com> | 2009-04-19 14:51:50 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-04-19 14:51:50 +0100 |
commit | d5151686d82b66c50935010fd5458be0e4386bab (patch) | |
tree | b598cf1d92a0d2ad58dc08811d9dda38a885e4f6 | |
parent | 13465753d3ed056609ec1e3137750a05d0497a66 (diff) | |
download | libguestfs-d5151686d82b66c50935010fd5458be0e4386bab.tar.gz libguestfs-d5151686d82b66c50935010fd5458be0e4386bab.tar.xz libguestfs-d5151686d82b66c50935010fd5458be0e4386bab.zip |
Use GUESTFS_LAUNCH_FLAG in the daemon, and use correct uint32_t.
-rw-r--r-- | daemon/guestfsd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/guestfsd.c b/daemon/guestfsd.c index c701f194..c3f5e821 100644 --- 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; - unsigned len; + uint32_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"); |