diff options
| author | Dr. David Alan Gilbert | 2017-02-20 19:50:17 +0100 |
|---|---|---|
| committer | Samuel Thibault | 2017-04-29 18:44:16 +0200 |
| commit | 2a7cab9e17bbe78f37c7515278eefc32876fa7a2 (patch) | |
| tree | f706cd59f0775d39e8b9ffcb338e847a972c699f /slirp/sbuf.h | |
| parent | slirp: VMState conversion; tcpcb (diff) | |
| download | qemu-2a7cab9e17bbe78f37c7515278eefc32876fa7a2.tar.gz qemu-2a7cab9e17bbe78f37c7515278eefc32876fa7a2.tar.xz qemu-2a7cab9e17bbe78f37c7515278eefc32876fa7a2.zip | |
slirp: VMStatify sbuf
Convert the sbuf structure to a VMStateDescription.
Note this uses the VMSTATE_WITH_TMP mechanism to calculate
and reload the offsets based on the pointers.
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp/sbuf.h')
| -rw-r--r-- | slirp/sbuf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/sbuf.h b/slirp/sbuf.h index efcec39a6b..a722ecb629 100644 --- a/slirp/sbuf.h +++ b/slirp/sbuf.h @@ -12,8 +12,8 @@ #define sbspace(sb) ((sb)->sb_datalen - (sb)->sb_cc) struct sbuf { - u_int sb_cc; /* actual chars in buffer */ - u_int sb_datalen; /* Length of data */ + uint32_t sb_cc; /* actual chars in buffer */ + uint32_t sb_datalen; /* Length of data */ char *sb_wptr; /* write pointer. points to where the next * bytes should be written in the sbuf */ char *sb_rptr; /* read pointer. points to where the next |
