summaryrefslogtreecommitdiff
path: root/sys/src/9/ppc
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-09-18 19:34:29 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-09-18 19:34:29 +0200
commit6b9cc409de48052e4474150236a22a4b6b44fceb (patch)
tree4811cf4ba7ef69fc49013572dca5bb2dcd30bc30 /sys/src/9/ppc
parentbd49212b467c60d6d5e4e2eefc13ec88012ec785 (diff)
mtx, ppc: remove cistrcmp() and cistrncmp() redefinition
Diffstat (limited to 'sys/src/9/ppc')
-rw-r--r--sys/src/9/ppc/fns.h2
-rw-r--r--sys/src/9/ppc/main.c47
2 files changed, 0 insertions, 49 deletions
diff --git a/sys/src/9/ppc/fns.h b/sys/src/9/ppc/fns.h
index d338f02fc..5ae2f8097 100644
--- a/sys/src/9/ppc/fns.h
+++ b/sys/src/9/ppc/fns.h
@@ -1,7 +1,5 @@
#include "../port/portfns.h"
-int cistrcmp(char*, char*);
-int cistrncmp(char*, char*, int);
void clockinit(void);
void clockintr(Ureg*);
void cpuidprint(void);
diff --git a/sys/src/9/ppc/main.c b/sys/src/9/ppc/main.c
index 5440fedae..e2ab259cd 100644
--- a/sys/src/9/ppc/main.c
+++ b/sys/src/9/ppc/main.c
@@ -450,53 +450,6 @@ isaconfig(char *class, int ctlrno, ISAConf *isa)
return 1;
}
-int
-cistrcmp(char *a, char *b)
-{
- int ac, bc;
-
- for(;;){
- ac = *a++;
- bc = *b++;
-
- if(ac >= 'A' && ac <= 'Z')
- ac = 'a' + (ac - 'A');
- if(bc >= 'A' && bc <= 'Z')
- bc = 'a' + (bc - 'A');
- ac -= bc;
- if(ac)
- return ac;
- if(bc == 0)
- break;
- }
- return 0;
-}
-
-int
-cistrncmp(char *a, char *b, int n)
-{
- unsigned ac, bc;
-
- while(n > 0){
- ac = *a++;
- bc = *b++;
- n--;
-
- if(ac >= 'A' && ac <= 'Z')
- ac = 'a' + (ac - 'A');
- if(bc >= 'A' && bc <= 'Z')
- bc = 'a' + (bc - 'A');
-
- ac -= bc;
- if(ac)
- return ac;
- if(bc == 0)
- break;
- }
-
- return 0;
-}
-
void
setupwatchpts(Proc *, Watchpt *, int n)
{