diff options
author | Damien George <damien.p.george@gmail.com> | 2014-10-12 23:35:38 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-10-12 23:35:38 +0100 |
commit | 4b71c056efef42d8bb81b980e0fd53ec0597249d (patch) | |
tree | 68e075237bbf752f3d1289349d87ff9b897629fe /extmod/moduzlib.c | |
parent | 29f56826218b3df81eeeaa6e1cdc36890a836e87 (diff) |
moduzlib: Fix fn prototype and some code style; use it in stmhal port.
Diffstat (limited to 'extmod/moduzlib.c')
-rw-r--r-- | extmod/moduzlib.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/extmod/moduzlib.c b/extmod/moduzlib.c index e0352b454..3659d518c 100644 --- a/extmod/moduzlib.c +++ b/extmod/moduzlib.c @@ -48,8 +48,7 @@ #define DEBUG_printf(...) (void)0 #endif -STATIC int mod_uzlib_grow_buf(TINF_DATA *d, unsigned alloc_req) -{ +STATIC int mod_uzlib_grow_buf(TINF_DATA *d, unsigned alloc_req) { if (alloc_req < 256) { alloc_req = 256; } @@ -59,7 +58,7 @@ STATIC int mod_uzlib_grow_buf(TINF_DATA *d, unsigned alloc_req) return 0; } -STATIC mp_obj_t mod_uzlib_decompress(uint n_args, mp_obj_t *args) { +STATIC mp_obj_t mod_uzlib_decompress(mp_uint_t n_args, const mp_obj_t *args) { mp_obj_t data = args[0]; mp_buffer_info_t bufinfo; mp_get_buffer_raise(data, &bufinfo, MP_BUFFER_READ); @@ -112,4 +111,4 @@ const mp_obj_module_t mp_module_uzlib = { #include "uzlib/tinfzlib.c" #include "uzlib/adler32.c" -#endif //MICROPY_PY_UZLIB +#endif // MICROPY_PY_UZLIB |