summaryrefslogtreecommitdiff
path: root/unix/moduselect.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-01-03 14:21:40 +0000
committerDamien George <damien.p.george@gmail.com>2016-01-11 00:49:27 +0000
commit4b72b3a133ea87a1ef8b964508dc25c551ccf093 (patch)
treee00ae8b891475f1a5d76bd2401d20a4dfb26e1e1 /unix/moduselect.c
parenta0c97814dfcb0debbde8be99539e3d5ca2334e54 (diff)
py: Change type signature of builtin funs that take variable or kw args.
With this patch the n_args parameter is changed type from mp_uint_t to size_t.
Diffstat (limited to 'unix/moduselect.c')
-rw-r--r--unix/moduselect.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/unix/moduselect.c b/unix/moduselect.c
index 7e0ec049f..13cb3f1fa 100644
--- a/unix/moduselect.c
+++ b/unix/moduselect.c
@@ -52,7 +52,7 @@ typedef struct _mp_obj_poll_t {
} mp_obj_poll_t;
/// \method register(obj[, eventmask])
-STATIC mp_obj_t poll_register(mp_uint_t n_args, const mp_obj_t *args) {
+STATIC mp_obj_t poll_register(size_t n_args, const mp_obj_t *args) {
mp_obj_poll_t *self = MP_OBJ_TO_PTR(args[0]);
int fd = mp_obj_get_int(args[1]);
mp_uint_t flags;
@@ -129,7 +129,7 @@ MP_DEFINE_CONST_FUN_OBJ_3(poll_modify_obj, poll_modify);
/// \method poll([timeout])
/// Timeout is in milliseconds.
-STATIC mp_obj_t poll_poll(mp_uint_t n_args, const mp_obj_t *args) {
+STATIC mp_obj_t poll_poll(size_t n_args, const mp_obj_t *args) {
mp_obj_poll_t *self = MP_OBJ_TO_PTR(args[0]);
// work out timeout (it's given already in ms)
@@ -186,7 +186,7 @@ STATIC const mp_obj_type_t mp_type_poll = {
.locals_dict = (void*)&poll_locals_dict,
};
-STATIC mp_obj_t select_poll(mp_uint_t n_args, const mp_obj_t *args) {
+STATIC mp_obj_t select_poll(size_t n_args, const mp_obj_t *args) {
int alloc = 4;
if (n_args > 0) {
alloc = mp_obj_get_int(args[0]);