From 504274019d8366e0407f61fa804ec0e8c92d0314 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 25 Oct 2006 23:47:40 +0000 Subject: [PATCH] gst/gstinfo.*: Change name parameter of _gst_debug_register_funcptr to const to reflect the constness of its use in t... Original commit message from CVS: * gst/gstinfo.c: * gst/gstinfo.h: Change name parameter of _gst_debug_register_funcptr to const to reflect the constness of its use in the function as well as to quiet a gcc warning. --- ChangeLog | 8 ++++++++ gst/gstinfo.c | 2 +- gst/gstinfo.h | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index dde6ff1..75e2b32 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-10-25 David Schleef + + * gst/gstinfo.c: + * gst/gstinfo.h: + Change name parameter of _gst_debug_register_funcptr to const + to reflect the constness of its use in the function as well + as to quiet a gcc warning. + 2006-10-25 Edward Hervey * libs/gst/base/gstbasetransform.c: (gst_base_transform_chain): diff --git a/gst/gstinfo.c b/gst/gstinfo.c index bc0dffe..b08413d 100644 --- a/gst/gstinfo.c +++ b/gst/gstinfo.c @@ -1249,7 +1249,7 @@ _gst_debug_nameof_funcptr (GstDebugFuncPtr ptr) } void -_gst_debug_register_funcptr (GstDebugFuncPtr func, gchar * ptrname) +_gst_debug_register_funcptr (GstDebugFuncPtr func, const gchar * ptrname) { gpointer ptr = (gpointer) func; diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 9bc5f40..2413d54 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -887,7 +887,7 @@ GST_LOG (const char *format, ...) typedef void (* GstDebugFuncPtr) (void); void _gst_debug_register_funcptr (GstDebugFuncPtr func, - gchar * ptrname); + const gchar * ptrname); G_CONST_RETURN gchar * _gst_debug_nameof_funcptr (GstDebugFuncPtr func); -- 2.7.4