From 3001cc1ab34a408131062311e7e91fb0c7fc4bf8 Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Tue, 14 Jan 2014 18:17:24 +0000 Subject: Added the static attribute to the 2 new functions strcnt() because all functions here must be static. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@10059 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_Native_File_Chooser_common.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 ) { -- cgit v1.2.3