Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mart Lubbers
CleanSerial
Commits
1a386f43
Commit
1a386f43
authored
Feb 06, 2017
by
Mart Lubbers
Browse files
fix makefile and legacy
parent
865cb81f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
1a386f43
...
...
@@ -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
$@
Clean\ System\ Files/ctty.o
:
tty.c
if
hash
gcc-5
;
\
if
hash
gcc-5
2>/dev/null
;
\
then
gcc-5
-DDEBUG
-c
$<
-o
"
$@
"
;
\
else
gcc
-DDEBUG
-c
$<
-o
"
$@
"
;
\
fi
...
...
tty.c
View file @
1a386f43
...
...
@@ -208,7 +208,8 @@ void ttyavailable(int fd, int *r, int *fdo)
int
ttywrite
(
CleanString
s
,
int
fd
)
{
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
];
printf
(
"%02x(%u) "
,
c
,
c
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment