summaryrefslogtreecommitdiff
path: root/src/cr-selector.c
diff options
context:
space:
mode:
authorPeter J. R. Moulder <pjmoulder@src.gnome.org>2008-03-30 05:43:43 +0000
committerPeter J. R. Moulder <pjmoulder@src.gnome.org>2008-03-30 05:43:43 +0000
commit8b60be7f9ac274c014294c51f88da884a3b0c99f (patch)
tree654b4d6a08a93e2bc0e957a010f87e8e597b5841 /src/cr-selector.c
parent71b9dffeed9300e3c1c6168a6023a6ee9a086889 (diff)
downloadlibcroco-8b60be7f9ac274c014294c51f88da884a3b0c99f.tar.gz
Add ‘const’ to various function prototypes, as discussed at http://www.mail-archive.com/libcroco-list@gnome.org/msg00049.html . This change is a noop in the sense that it has no effect on libcroco's object files, but does affect source-level compatibility, both forwards and backwards — though in practice I'd guess that no existing code will break from this.
svn path=/trunk/; revision=315
Diffstat (limited to 'src/cr-selector.c')
-rw-r--r--src/cr-selector.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cr-selector.c b/src/cr-selector.c
index 6fe1267..a3603e3 100644
--- a/src/cr-selector.c
+++ b/src/cr-selector.c
@@ -138,7 +138,7 @@ cr_selector_append_simple_sel (CRSelector * a_this,
}
guchar *
-cr_selector_to_string (CRSelector * a_this)
+cr_selector_to_string (CRSelector const * a_this)
{
guchar *result = NULL;
GString *str_buf = NULL;
@@ -147,7 +147,7 @@ cr_selector_to_string (CRSelector * a_this)
g_return_val_if_fail (str_buf, NULL);
if (a_this) {
- CRSelector *cur = NULL;
+ CRSelector const *cur = NULL;
for (cur = a_this; cur; cur = cur->next) {
if (cur->simple_sel) {
@@ -188,7 +188,7 @@ cr_selector_to_string (CRSelector * a_this)
*Serializes the current instance of #CRSelector to a file.
*/
void
-cr_selector_dump (CRSelector * a_this, FILE * a_fp)
+cr_selector_dump (CRSelector const * a_this, FILE * a_fp)
{
guchar *tmp_buf = NULL;