diff m_struct.h @ 19104:2ec2301183cd

marks several read-only string parameters which aren't modified inside the called function as const. Patch by Stefan Huehner, stefan AT huehner-org
author reynaldo
date Sat, 15 Jul 2006 16:03:12 +0000
parents 67d35fe89c8d
children 5949a654e2d4
line wrap: on
line diff
--- a/m_struct.h	Sat Jul 15 15:27:09 2006 +0000
+++ b/m_struct.h	Sat Jul 15 16:03:12 2006 +0000
@@ -78,7 +78,7 @@
  *  \param field Name of the field to reset, if NULL all fields are reseted.
  */
 void
-m_struct_reset(m_struct_t* st, void* obj, char* field);
+m_struct_reset(m_struct_t* st, void* obj, const char* field);
 
 /// Create a copy of an existing struct.
 /** \param st Struct definiton.
@@ -101,7 +101,7 @@
  *  \return The \ref m_option struct describing the field or NULL if not found.
  */
 struct m_option*
-m_struct_get_field(m_struct_t* st,char* f);
+m_struct_get_field(m_struct_t* st,const char* f);
 
 ///@}