diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_Native_File_Chooser_common.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Fl_Native_File_Chooser_common.cxx b/src/Fl_Native_File_Chooser_common.cxx index 1849ef50b..07e2a1ad6 100644 --- a/src/Fl_Native_File_Chooser_common.cxx +++ b/src/Fl_Native_File_Chooser_common.cxx @@ -71,15 +71,15 @@ static void chrcat(char *s, char c) { strcat(s, tmp); } -// COUNT OCCURANCES OF CHAR 'c' IN 'find'. -int strcnt(const char *s, char c) { +// COUNT OCCURRENCES OF CHAR 'c' IN 'find'. +static int strcnt(const char *s, char c) { int cnt = 0; while ( *s ) { if (*s++ == c ) ++cnt; } return cnt; } -// COUNT OCCURANCES OF ANY CHARS FROM 'find' IN 's'. -int strcnt(const char *s, const char *find) { +// COUNT OCCURRENCES OF ANY CHARS FROM 'find' IN 's'. +static int strcnt(const char *s, const char *find) { int cnt = 0; const char *f; while ( *s ) { |
