Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
7a5a4fe2
Commit
7a5a4fe2
authored
Nov 27, 2015
by
Damien George
Browse files
unix/unix_mphal: Use size_t instead of mp_uint_t in stdout_tx_strn decls.
parent
88a9103b
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/unix_mphal.c
View file @
7a5a4fe2
...
...
@@ -105,13 +105,13 @@ int mp_hal_stdin_rx_chr(void) {
return
c
;
}
void
mp_hal_stdout_tx_strn
(
const
char
*
str
,
mp_uint
_t
len
)
{
void
mp_hal_stdout_tx_strn
(
const
char
*
str
,
size
_t
len
)
{
int
ret
=
write
(
1
,
str
,
len
);
(
void
)
ret
;
// to suppress compiler warning
}
// cooked is same as uncooked because the terminal does some postprocessing
void
mp_hal_stdout_tx_strn_cooked
(
const
char
*
str
,
mp_uint
_t
len
)
{
void
mp_hal_stdout_tx_strn_cooked
(
const
char
*
str
,
size
_t
len
)
{
mp_hal_stdout_tx_strn
(
str
,
len
);
}
...
...
Write
Preview
Supports
Markdown
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