diff subopt-helper.c @ 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 2a7220c457a7
children bc9e95184521
line wrap: on
line diff
--- a/subopt-helper.c	Sat Jul 15 15:27:09 2006 +0000
+++ b/subopt-helper.c	Sat Jul 15 16:03:12 2006 +0000
@@ -324,7 +324,7 @@
 /*** little helpers */
 
 /** \brief compare the stings just as strcmp does */
-int strargcmp(strarg_t *arg, char *str) {
+int strargcmp(strarg_t *arg, const char *str) {
   int res = strncmp(arg->str, str, arg->len);
   if (!res && arg->len != strlen(str))
     res = arg->len - strlen(str);