Commit 1a386f43 authored by Mart Lubbers's avatar Mart Lubbers
Browse files

fix makefile and legacy

parent 865cb81f
...@@ -2,7 +2,7 @@ test: test.icl TTY.icl TTY.dcl Clean\ System\ Files/ctty.o ...@@ -2,7 +2,7 @@ test: test.icl TTY.icl TTY.dcl Clean\ System\ Files/ctty.o
clm -dynamics -l -no-pie -I /opt/clean/lib/Dynamics $(basename $<) -o $@ clm -dynamics -l -no-pie -I /opt/clean/lib/Dynamics $(basename $<) -o $@
Clean\ System\ Files/ctty.o: tty.c Clean\ System\ Files/ctty.o: tty.c
if hash gcc-5;\ if hash gcc-5 2>/dev/null;\
then gcc-5 -DDEBUG -c $< -o "$@"; \ then gcc-5 -DDEBUG -c $< -o "$@"; \
else gcc -DDEBUG -c $< -o "$@"; \ else gcc -DDEBUG -c $< -o "$@"; \
fi fi
......
...@@ -208,7 +208,8 @@ void ttyavailable(int fd, int *r, int *fdo) ...@@ -208,7 +208,8 @@ void ttyavailable(int fd, int *r, int *fdo)
int ttywrite(CleanString s, int fd) int ttywrite(CleanString s, int fd)
{ {
debug("ttywrite"); debug("ttywrite");
for(int i = 0; i< CleanStringLength(s); i++){ int i;
for(i = 0; i< CleanStringLength(s); i++){
unsigned char c = ((unsigned char*)CleanStringCharacters(s))[i]; unsigned char c = ((unsigned char*)CleanStringCharacters(s))[i];
printf("%02x(%u) ", c, c); printf("%02x(%u) ", c, c);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment