Should be static too to match the previous declarations 92/10092/3
Sylvestre Ledru [Wed, 26 Dec 2012 13:50:16 +0000 (14:50 +0100)]
Change-Id: Ia49e523476514a731ba0b7c39d2aa2375ac20bd6

scilab/modules/fileio/src/c/mgetl.c

index bec5a83..dc41911 100644 (file)
@@ -230,7 +230,7 @@ char **mgetl(int fd, int nbLinesIn, int *nbLinesOut, int *ierr)
     return strLines;
 }
 /*--------------------------------------------------------------------------*/
-char *removeEOL(char *_inString)
+static char *removeEOL(char *_inString)
 {
     if (_inString)
     {
@@ -252,7 +252,7 @@ char *removeEOL(char *_inString)
 /*
 * convert ansi to Utf
 */
-char *convertAnsiToUtf(char *_inString)
+static char *convertAnsiToUtf(char *_inString)
 {
     char *outString = NULL;
     if (_inString)
@@ -303,7 +303,10 @@ char *convertAnsiToUtf(char *_inString)
             int i = 0;
 
             outString = (char*)MALLOC(((len * 3) + 1) * sizeof(char));
-            if (outString == NULL) return NULL;
+            if (outString == NULL)
+            {
+                return NULL;
+            }
             strcpy(outString, EMPTYSTR);
 
             for (i = 0; i < len; i++)
@@ -311,8 +314,14 @@ char *convertAnsiToUtf(char *_inString)
                 unsigned char *outUtfChar = NULL;
                 unsigned char inAnsiChar = 0;
 
-                if (_inString[i] < 0) inAnsiChar = 256 + _inString[i];
-                else inAnsiChar = _inString[i];
+                if (_inString[i] < 0)
+                {
+                    inAnsiChar = 256 + _inString[i];
+                }
+                else
+                {
+                    inAnsiChar = _inString[i];
+                }
 
                 if (inAnsiChar < 128)
                 {
@@ -347,7 +356,7 @@ char *convertAnsiToUtf(char *_inString)
     return outString;
 }
 /*--------------------------------------------------------------------------*/
-char *getNextLine(FILE *stream)
+static char *getNextLine(FILE *stream)
 {
     char *bufferLine = NULL;
     if (stream != NULL)