gstreamer: gstplugin: add a few consts to read only data

Vincent Penquerc'h vincent at kemper.freedesktop.org
Fri Jan 27 03:33:18 PST 2012


Module: gstreamer
Branch: master
Commit: 68a091303fcd8f3f6dcb3c9c39d1ac3678a9bf93
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=68a091303fcd8f3f6dcb3c9c39d1ac3678a9bf93

Author: Vincent Penquerc'h <vincent.penquerch at collabora.co.uk>
Date:   Fri Jan 27 11:32:12 2012 +0000

gstplugin: add a few consts to read only data

---

 gst/gstplugin.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/gstplugin.c b/gst/gstplugin.c
index 02e5cc9..693bc0f 100644
--- a/gst/gstplugin.c
+++ b/gst/gstplugin.c
@@ -90,7 +90,7 @@ static char *_gst_plugin_fault_handler_filename = NULL;
  * MIT/X11: http://www.opensource.org/licenses/mit-license.php
  * 3-clause BSD: http://www.opensource.org/licenses/bsd-license.php
  */
-static const gchar *valid_licenses[] = {
+static const gchar *const valid_licenses[] = {
   "LGPL",                       /* GNU Lesser General Public License */
   "GPL",                        /* GNU General Public License */
   "QPL",                        /* Trolltech Qt Public License */
@@ -487,7 +487,7 @@ priv_gst_plugin_loading_get_whitelist_hash (void)
 static gboolean
 gst_plugin_check_license (const gchar * license)
 {
-  const gchar **check_license = valid_licenses;
+  const gchar *const *check_license = valid_licenses;
 
   g_assert (check_license);
 



More information about the gstreamer-commits mailing list