changeset 7768:4e5c48ea9478

[gaim-migrate @ 8413] This is really const, and informing the compiler might improve inlining committer: Tailor Script <tailor@pidgin.im>
author Ethan Blanton <elb@pidgin.im>
date Fri, 05 Dec 2003 18:02:27 +0000
parents 1f4005fcd872
children 1802d02846f5
files src/stringref.c src/stringref.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/stringref.c	Fri Dec 05 17:28:22 2003 +0000
+++ b/src/stringref.c	Fri Dec 05 18:02:27 2003 +0000
@@ -71,7 +71,7 @@
 		g_free(stringref);
 }
 
-const char *gaim_stringref_value(GaimStringref *stringref)
+const char *gaim_stringref_value(const GaimStringref *stringref)
 {
 	return (stringref == NULL ? NULL : stringref->value);
 }
--- a/src/stringref.h	Fri Dec 05 17:28:22 2003 +0000
+++ b/src/stringref.h	Fri Dec 05 18:02:27 2003 +0000
@@ -93,6 +93,6 @@
  *
  * @return The contents of the string reference.
  */
-const char *gaim_stringref_value(GaimStringref *stringref);
+const char *gaim_stringref_value(const GaimStringref *stringref);
 
 #endif /* _GAIM_STRINGREF_H_ */