Mercurial > mplayer.hg
comparison subreader.c @ 18980:ed69754aa58d
Marks several string parameters as const when they are not modified in the function, Patch by Stefan Huehner, stefan AT huehner-org
author | reynaldo |
---|---|
date | Sun, 09 Jul 2006 17:45:36 +0000 |
parents | b80b0c115a24 |
children | 26a30496ec96 |
comparison
equal
deleted
inserted
replaced
18979:494e8de479aa | 18980:ed69754aa58d |
---|---|
1830 } else { | 1830 } else { |
1831 return strcoll(((subfn*)a)->fname, ((subfn*)b)->fname); | 1831 return strcoll(((subfn*)a)->fname, ((subfn*)b)->fname); |
1832 } | 1832 } |
1833 } | 1833 } |
1834 | 1834 |
1835 char** sub_filenames(char* path, char *fname) | 1835 char** sub_filenames(const char* path, char *fname) |
1836 { | 1836 { |
1837 char *f_dir, *f_fname, *f_fname_noext, *f_fname_trim, *tmp, *tmp_sub_id; | 1837 char *f_dir, *f_fname, *f_fname_noext, *f_fname_trim, *tmp, *tmp_sub_id; |
1838 char *tmp_fname_noext, *tmp_fname_trim, *tmp_fname_ext, *tmpresult; | 1838 char *tmp_fname_noext, *tmp_fname_trim, *tmp_fname_ext, *tmpresult; |
1839 | 1839 |
1840 int len, pos, found, i, j; | 1840 int len, pos, found, i, j; |