diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2019-09-20 09:33:39 -0400 |
---|---|---|
committer | Thanos <tmakatos@gmail.com> | 2019-09-20 14:45:21 +0100 |
commit | c5d257345cca0f3a0362ce9284cf3e830635129d (patch) | |
tree | eadfcda649d9d5ea9f2c389e475d905fa3759ce1 /lib | |
parent | 4448e0e0533c4e32de651acd0bedc701ed79f789 (diff) | |
download | libvfio-user-c5d257345cca0f3a0362ce9284cf3e830635129d.zip libvfio-user-c5d257345cca0f3a0362ce9284cf3e830635129d.tar.gz libvfio-user-c5d257345cca0f3a0362ce9284cf3e830635129d.tar.bz2 |
stylistic corrections
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python_bindings.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/python_bindings.c b/lib/python_bindings.c index d1809ad..9b0c650 100644 --- a/lib/python_bindings.c +++ b/lib/python_bindings.c @@ -116,7 +116,8 @@ static ssize_t (*region_access_wraps[LM_DEV_NUM_REGS])(void*, char * const, size r_5_wrap, r_6_wrap, r_7_wrap, - r_8_wrap}; + r_8_wrap +}; struct _region_info { char *perm; @@ -188,11 +189,9 @@ libmuser_run(PyObject *self, PyObject *args, PyObject *kwargs) for (j = 0; j < strlen(_ri[i].perm); j++) { if (_ri[i].perm[j] == 'r') { flags |= LM_REG_FLAG_READ; - } - else if (_ri[i].perm[j] == 'w') { + } else if (_ri[i].perm[j] == 'w') { flags |= LM_REG_FLAG_WRITE; - } - else { + } else { /* FIXME shouldn't print to stderr */ fprintf(stderr, "bad permission '%c'\n", _ri[i].perm[j]); return NULL; |