summaryrefslogtreecommitdiff
path: root/Build/source/texk/mendexk/styfile.c
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2010-04-15 09:05:21 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2010-04-15 09:05:21 +0000
commitf9a686d424f912154ffe8b7d5eb235032777a16f (patch)
treed0080bb63d613a4a64dc476c5c58e3ffbe8c241c /Build/source/texk/mendexk/styfile.c
parent32912d37dba67d5dc461a98e4444d5ea7723d2e3 (diff)
pTeX: avoid compiler warnings
git-svn-id: svn://tug.org/texlive/trunk@17875 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/mendexk/styfile.c')
-rw-r--r--Build/source/texk/mendexk/styfile.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/Build/source/texk/mendexk/styfile.c b/Build/source/texk/mendexk/styfile.c
index 2e26cef8896..ccc2db238c9 100644
--- a/Build/source/texk/mendexk/styfile.c
+++ b/Build/source/texk/mendexk/styfile.c
@@ -15,16 +15,16 @@ extern KpathseaSupportInfo kp_ist;
FILE *fp;
-void convline(char *buff1, int start, char *buff2);
-int scompare(char *buff1, char *buff2);
-int getparam(char *buff, char *paraname, char *param);
-int getparachar(char *buff, char *paraname, char *param);
-size_t sstrlen(const char *buff);
-int sstrcmp(const char *s1, const char *s2);
-int sstrncmp(const char *s1, const char *s2, size_t len);
+static void convline(char *buff1, int start, char *buff2);
+static int scompare(char *buff1, const char *buff2);
+static int getparam(char *buff, const char *paraname, char *param);
+static int getparachar(char *buff, const char *paraname, char *param);
+static size_t sstrlen(const char *buff);
+static int sstrcmp(const char *s1, const char *s2);
+static int sstrncmp(const char *s1, const char *s2, size_t len);
/* read style file */
-void styread(char *filename)
+void styread(const char *filename)
{
int i,cc;
char buff[4096];
@@ -127,7 +127,7 @@ void styread(char *filename)
}
/* analize string parameter of style file */
-void convline(char *buff1, int start, char *buff2)
+static void convline(char *buff1, int start, char *buff2)
{
int i,j,cc;
@@ -172,7 +172,7 @@ void convline(char *buff1, int start, char *buff2)
}
/* compare strings */
-int scompare(char *buff1, char *buff2)
+static int scompare(char *buff1, const char *buff2)
{
int i;
@@ -197,7 +197,7 @@ int scompare(char *buff1, char *buff2)
}
/* get string of style patameter */
-int getparam(char *buff, char *paraname, char *param)
+static int getparam(char *buff, const char *paraname, char *param)
{
int cc;
@@ -210,7 +210,7 @@ int getparam(char *buff, char *paraname, char *param)
}
/* get character of style parameter */
-int getparachar(char *buff, char *paraname, char *param)
+static int getparachar(char *buff, const char *paraname, char *param)
{
int j,cc;
@@ -233,20 +233,20 @@ int getparachar(char *buff, char *paraname, char *param)
return 0;
}
-size_t sstrlen(const char *s)
+static size_t sstrlen(const char *s)
{
if (s == NULL) return 0;
return strlen(s);
}
-int sstrcmp(const char *s1, const char *s2)
+static int sstrcmp(const char *s1, const char *s2)
{
if (s1 == NULL) return -1;
if (s2 == NULL) return 1;
return strcmp(s1, s2);
}
-int sstrncmp(const char *s1, const char *s2, size_t len)
+static int sstrncmp(const char *s1, const char *s2, size_t len)
{
if (s1 == NULL) return -1;
if (s2 == NULL) return 1;