aboutsummaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorH. Nikolaus Schaller <hns@goldelico.com>2012-04-20 14:15:11 +0200
committerH. Nikolaus Schaller <hns@goldelico.com>2012-04-20 14:15:11 +0200
commitdb274137c95e1683581032570562e459c616d9e4 (patch)
treee1edc6a0714c5fd706c85c278d274e6d31e6edaa /common
parent8a096e250cd4eafa42cc44ec40a4f76d336f8616 (diff)
downloadbootable_bootloader_goldelico_gta04_x-loader-db274137c95e1683581032570562e459c616d9e4.zip
bootable_bootloader_goldelico_gta04_x-loader-db274137c95e1683581032570562e459c616d9e4.tar.gz
bootable_bootloader_goldelico_gta04_x-loader-db274137c95e1683581032570562e459c616d9e4.tar.bz2
fixed duplicate strcmp
Diffstat (limited to 'common')
-rw-r--r--common/cmd_monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/cmd_monitor.c b/common/cmd_monitor.c
index 05ff5df..69be750 100644
--- a/common/cmd_monitor.c
+++ b/common/cmd_monitor.c
@@ -79,7 +79,7 @@ static inline int gpio_is_input(int n)
return (base->oe >> bit)&1;
}
-int strcmp(char *s1, char *s2)
+static int strcmp(char *s1, char *s2)
{
while(*s1 == *s2) {
if(*s1 == 0)
@@ -90,7 +90,7 @@ int strcmp(char *s1, char *s2)
return *s1 > *s2?1:-1;
}
-long xtol(char *s)
+static long xtol(char *s)
{
long val=0;
while(1)