summaryrefslogtreecommitdiffstats
path: root/yamdrv
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2017-01-30 07:02:12 +0100
committerRalf Baechle <ralf@linux-mips.org>2017-02-06 23:43:46 +0100
commit986e997707b64633f64e15beeae131f01c22f7df (patch)
treea5c0ca0b5ac7fc1588dbc33d1e10ca36c62d799d /yamdrv
parentdcd631f13d0ce6658962fc01bbb2a6202970cc40 (diff)
yamdrv: Mark functions static and delete unused function.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'yamdrv')
-rw-r--r--yamdrv/mcs2h.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/yamdrv/mcs2h.c b/yamdrv/mcs2h.c
index 7f0d510..634a174 100644
--- a/yamdrv/mcs2h.c
+++ b/yamdrv/mcs2h.c
@@ -2,7 +2,7 @@
#include <time.h>
#include <string.h>
-int in2hex(char *ptr)
+static int in2hex(char *ptr)
{
char str[3];
unsigned int val;
@@ -15,7 +15,7 @@ int in2hex(char *ptr)
return val;
}
-unsigned char swap(unsigned char c)
+static unsigned char swap(unsigned char c)
{
unsigned char r = 0;
int i;
@@ -30,19 +30,6 @@ unsigned char swap(unsigned char c)
return r;
}
-int in4hex(char *ptr)
-{
- char str[5];
- unsigned int val;
-
- memcpy(str, ptr, 4);
- str[4] = '\0';
-
- sscanf(str, "%x", &val);
-
- return val;
-}
-
int main(int ac, char *av[])
{
int nb, type, i;