diff options
author | Eric Blake <eblake@redhat.com> | 2016-03-03 09:16:47 -0700 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-03-05 10:41:47 +0100 |
commit | f194a1ae530e232b994d23aa8651696dd6664b5d (patch) | |
tree | a74f216de654633e1409a491eb264ab1795f1928 /util/qemu-sockets.c | |
parent | 9ee86b852673fd9ec807b1ff3c3a1337351dac0a (diff) | |
download | qemu-f194a1ae530e232b994d23aa8651696dd6664b5d.tar.gz qemu-f194a1ae530e232b994d23aa8651696dd6664b5d.tar.bz2 qemu-f194a1ae530e232b994d23aa8651696dd6664b5d.zip |
chardev: Shorten references into ChardevBackend
An upcoming patch will alter how simple unions, like ChardevBackend,
are laid out, which will impact all lines of the form 'backend->u.XXX'
(expanding it to the longer 'backend->u.XXX.data'). For better
legibility in that patch, and less need for line wrapping, it's better
to use a temporary variable to reduce the effect of a layout change to
just the variable initializations, rather than every reference within
a ChardevBackend. It doesn't hurt that this also makes the code more
consistent: some clients touched here already had a temporary variable
but weren't using it.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-By: Daniel P. Berrange <berrange@redhat.com>
Message-Id: <1457021813-10704-6-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'util/qemu-sockets.c')
0 files changed, 0 insertions, 0 deletions