Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CleanSerial
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mart Lubbers
CleanSerial
Commits
1a386f43
Commit
1a386f43
authored
Feb 06, 2017
by
Mart Lubbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix makefile and legacy
parent
865cb81f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
Makefile
Makefile
+1
-1
tty.c
tty.c
+2
-1
No files found.
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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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