diff options
| author | Damien George <damien.p.george@gmail.com> | 2014-10-05 21:51:54 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2014-10-05 21:51:54 +0100 |
| commit | d03c6816083c8ce8a35d278ede48c4089012b055 (patch) | |
| tree | 649e2d3bf056a44109fb1f69bf1c855f3b11d067 /stmhal/printf.c | |
| parent | c4d0868df1117ad243ee8f7238985a822b0f775d (diff) | |
stmhal: Use mp_uint_t where appropriate.
Found these by compiling stmhal with mp_uint_t of type uint32_t instead
of unsigned int. This actually makes a difference to the code, but just
a curiosity.
Diffstat (limited to 'stmhal/printf.c')
| -rw-r--r-- | stmhal/printf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stmhal/printf.c b/stmhal/printf.c index db611f3d9..86b756f7d 100644 --- a/stmhal/printf.c +++ b/stmhal/printf.c @@ -48,7 +48,7 @@ int pfenv_vprintf(const pfenv_t *pfenv, const char *fmt, va_list args); -STATIC void stdout_print_strn(void *dummy_env, const char *str, unsigned int len) { +STATIC void stdout_print_strn(void *dummy_env, const char *str, mp_uint_t len) { stdout_tx_strn_cooked(str, len); } @@ -97,7 +97,7 @@ typedef struct _strn_pfenv_t { size_t remain; } strn_pfenv_t; -void strn_print_strn(void *data, const char *str, unsigned int len) { +STATIC void strn_print_strn(void *data, const char *str, mp_uint_t len) { strn_pfenv_t *strn_pfenv = data; if (len > strn_pfenv->remain) { len = strn_pfenv->remain; |
