diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-06-15 15:45:38 +0400 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2017-06-15 17:45:09 +0400 |
commit | b1cdd014d1e50646c864966e5102cff84318ffe2 (patch) | |
tree | b5f08f073998a1de6b8d2fc0148e03199e1cd81b /src/spice-util.c | |
parent | da97aed71ef136fb25eddafaeddd9e56d3f8925c (diff) |
util: replace SPICE_BYTESWAP16 with GUINT16_SWAP_LE_BE
SPICE_BYTESWAP* macros where introduced at a time when spice didn't
depend on glib (that feels quite long ago). Those macros seem to be
copied & adapted from glib.
In any case, that's the only direct user in spice-gtk, we can use the
glib version instead, so one day SPICE_BYTESWAP* could eventually be
removed.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
Diffstat (limited to 'src/spice-util.c')
-rw-r--r-- | src/spice-util.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/spice-util.c b/src/spice-util.c index 86377b6..f5a35ed 100644 --- a/src/spice-util.c +++ b/src/spice-util.c @@ -23,7 +23,6 @@ #include <string.h> #include <glib.h> #include <glib-object.h> -#include <spice/macros.h> #include "spice-util-priv.h" #include "spice-util.h" #include "spice-util-priv.h" @@ -275,7 +274,7 @@ guint16 spice_make_scancode(guint scancode, gboolean release) scancode |= 0x80; if (scancode < 0x100) return scancode; - return SPICE_BYTESWAP16(0xe000 | (scancode - 0x100)); + return GUINT16_SWAP_LE_BE(0xe000 | (scancode - 0x100)); } typedef enum { |