diff options
| author | Damien George <damien.p.george@gmail.com> | 2017-08-30 10:59:58 +1000 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2017-08-30 10:59:58 +1000 |
| commit | 71c9cfb028d423bf4760d66b1afe8951335fa5da (patch) | |
| tree | 83ce8ec7270f759f73911f5b45bede989872a9b5 /cc3200/mods/modnetwork.c | |
| parent | 784909ce1655bf8b2a97ac81a3842e844992082f (diff) | |
all: Convert remaining "mp_uint_t n_args" to "size_t n_args".
This is to have consistency across the whole repository.
Diffstat (limited to 'cc3200/mods/modnetwork.c')
| -rw-r--r-- | cc3200/mods/modnetwork.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc3200/mods/modnetwork.c b/cc3200/mods/modnetwork.c index 221b664da..0234a0ccb 100644 --- a/cc3200/mods/modnetwork.c +++ b/cc3200/mods/modnetwork.c @@ -112,7 +112,7 @@ STATIC mp_obj_t network_server_make_new(const mp_obj_type_t *type, size_t n_args return (mp_obj_t)self; } -STATIC mp_obj_t network_server_init(mp_uint_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { +STATIC mp_obj_t network_server_init(size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args) { // parse args mp_arg_val_t args[MP_ARRAY_SIZE(network_server_args) - 1]; mp_arg_parse_all(n_args - 1, pos_args + 1, kw_args, MP_ARRAY_SIZE(args), &network_server_args[1], args); @@ -121,7 +121,7 @@ STATIC mp_obj_t network_server_init(mp_uint_t n_args, const mp_obj_t *pos_args, STATIC MP_DEFINE_CONST_FUN_OBJ_KW(network_server_init_obj, 1, network_server_init); // timeout value given in seconds -STATIC mp_obj_t network_server_timeout(mp_uint_t n_args, const mp_obj_t *args) { +STATIC mp_obj_t network_server_timeout(size_t n_args, const mp_obj_t *args) { if (n_args > 1) { uint32_t timeout = mp_obj_get_int(args[1]); servers_set_timeout(timeout * 1000); |
