summaryrefslogtreecommitdiffstats
path: root/subopt-helper.c
diff options
context:
space:
mode:
authorreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-15 16:03:12 +0000
committerreynaldo <reynaldo@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-07-15 16:03:12 +0000
commit58ed2c3fe035313bfc7feca7fd18abb84fa4fad1 (patch)
tree75a071a62db73e1bfb50be8ae3caa0a8054f2ea2 /subopt-helper.c
parent9dd64b49e89cefd2158e8a5bb25798bd72ac2575 (diff)
downloadmpv-58ed2c3fe035313bfc7feca7fd18abb84fa4fad1.tar.bz2
mpv-58ed2c3fe035313bfc7feca7fd18abb84fa4fad1.tar.xz
marks several read-only string parameters which aren't modified inside the called function as const. Patch by Stefan Huehner, stefan AT huehner-org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19109 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'subopt-helper.c')
-rw-r--r--subopt-helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/subopt-helper.c b/subopt-helper.c
index 32cf883b09..b0b425eab7 100644
--- a/subopt-helper.c
+++ b/subopt-helper.c
@@ -324,7 +324,7 @@ int int_pos( int * i )
/*** 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);