[xiph-commits] r12545 - trunk/ezstream/src

moritz at svn.xiph.org moritz at svn.xiph.org
Sat Feb 24 14:50:16 PST 2007


Author: moritz
Date: 2007-02-24 14:50:14 -0800 (Sat, 24 Feb 2007)
New Revision: 12545

Modified:
   trunk/ezstream/src/configfile.c
   trunk/ezstream/src/configfile.h
Log:
Const'ify configfile functions.


Modified: trunk/ezstream/src/configfile.c
===================================================================
--- trunk/ezstream/src/configfile.c	2007-02-24 22:25:28 UTC (rev 12544)
+++ trunk/ezstream/src/configfile.c	2007-02-24 22:50:14 UTC (rev 12545)
@@ -43,7 +43,7 @@
 	return (&ezConfig);
 }
 
-char*	getFormatEncoder(char *format)
+char*	getFormatEncoder(const char *format)
 {
 	int i = 0;
 	for (i=0;i<ezConfig.numEncoderDecoders;i++) {
@@ -63,7 +63,7 @@
 	return blankString;
 }
 
-char*	getFormatDecoder(char *match)
+char*	getFormatDecoder(const char *match)
 {
 	int i = 0;
 	for (i=0;i<ezConfig.numEncoderDecoders;i++) {
@@ -83,7 +83,7 @@
 	return blankString;
 }
 
-int parseConfig(char *fileName)
+int parseConfig(const char *fileName)
 {
 	xmlDocPtr doc;
 	xmlNodePtr cur;

Modified: trunk/ezstream/src/configfile.h
===================================================================
--- trunk/ezstream/src/configfile.h	2007-02-24 22:25:28 UTC (rev 12544)
+++ trunk/ezstream/src/configfile.h	2007-02-24 22:50:14 UTC (rev 12545)
@@ -60,8 +60,8 @@
 } EZCONFIG;
 
 EZCONFIG *	getEZConfig(void);
-char *		getFormatEncoder(char *format);
-char *		getFormatDecoder(char *match);
-int		parseConfig(char *fileName);
+char *		getFormatEncoder(const char *format);
+char *		getFormatDecoder(const char *match);
+int		parseConfig(const char *fileName);
 
 #endif /* __CONFIGFILE_H__ */



More information about the commits mailing list