aboutsummaryrefslogtreecommitdiff
path: root/slirp/sbuf.h
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2017-02-20 18:50:17 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2017-04-29 18:44:16 +0200
commit2a7cab9e17bbe78f37c7515278eefc32876fa7a2 (patch)
treef706cd59f0775d39e8b9ffcb338e847a972c699f /slirp/sbuf.h
parente3ec38ffd6eeff3c3db9f0fd942e37a60f36e86c (diff)
downloadqemu-2a7cab9e17bbe78f37c7515278eefc32876fa7a2.zip
qemu-2a7cab9e17bbe78f37c7515278eefc32876fa7a2.tar.gz
qemu-2a7cab9e17bbe78f37c7515278eefc32876fa7a2.tar.bz2
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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/slirp/sbuf.h b/slirp/sbuf.h
index efcec39..a722ecb 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