[gtk-vnc] Remove redundant 'const' annotations
- From: Daniel P. Berrange <dberrange src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Remove redundant 'const' annotations
- Date: Fri, 9 Dec 2011 17:42:50 +0000 (UTC)
commit d6197e51d614bb22248911b269c357da6825e76e
Author: Daniel P. Berrange <berrange redhat com>
Date: Fri Dec 9 17:27:15 2011 +0000
Remove redundant 'const' annotations
src/vncdisplay.c | 2 +-
src/vncdisplaykeymap.c | 4 ++--
src/vncdisplaykeymap.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index 1a1ea2d..2a84637 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -78,7 +78,7 @@ struct _VncDisplayPrivate
GSList *preferable_auths;
GSList *preferable_vencrypt_subauths;
size_t keycode_maplen;
- const guint16 const *keycode_map;
+ const guint16 *keycode_map;
VncGrabSequence *vncgrabseq; /* the configured key sequence */
gboolean *vncactiveseq; /* the currently pressed keys */
diff --git a/src/vncdisplaykeymap.c b/src/vncdisplaykeymap.c
index 4c4d374..70229f1 100644
--- a/src/vncdisplaykeymap.c
+++ b/src/vncdisplaykeymap.c
@@ -128,7 +128,7 @@ static gboolean check_for_xquartz(GdkDisplay *dpy)
}
#endif
-const guint16 const *vnc_display_keymap_gdk2rfb_table(size_t *maplen)
+const guint16 *vnc_display_keymap_gdk2rfb_table(size_t *maplen)
{
GdkDisplay *dpy = gdk_display_get_default();
@@ -215,7 +215,7 @@ const guint16 const *vnc_display_keymap_gdk2rfb_table(size_t *maplen)
return NULL;
}
-guint16 vnc_display_keymap_gdk2rfb(const guint16 const *keycode_map,
+guint16 vnc_display_keymap_gdk2rfb(const guint16 *keycode_map,
size_t keycode_maplen,
guint16 keycode)
{
diff --git a/src/vncdisplaykeymap.h b/src/vncdisplaykeymap.h
index 053e387..57fdad0 100644
--- a/src/vncdisplaykeymap.h
+++ b/src/vncdisplaykeymap.h
@@ -24,7 +24,7 @@
#include <glib.h>
-const guint16 const *vnc_display_keymap_gdk2rfb_table(size_t *maplen);
+const guint16 *vnc_display_keymap_gdk2rfb_table(size_t *maplen);
guint16 vnc_display_keymap_gdk2rfb(const guint16 *keycode_map,
size_t keycode_maplen,
guint16 keycode);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]