summaryrefslogtreecommitdiff
path: root/_obnammodule.c
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2014-04-15 19:41:45 +0100
committerLars Wirzenius <liw@liw.fi>2014-04-15 19:41:45 +0100
commit7954a7f392905413ff606a8ab090d8b0f5a0b68f (patch)
tree961da4d9b2a2d91dbd9bdaccb67cf432dd4547b4 /_obnammodule.c
parentcbfab73361f859b3dcad2512c528f9820c13a0c6 (diff)
downloadobnam-7954a7f392905413ff606a8ab090d8b0f5a0b68f.tar.gz
Expand TABs in _obnammodule.c
Diffstat (limited to '_obnammodule.c')
-rw-r--r--_obnammodule.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/_obnammodule.c b/_obnammodule.c
index 712604b7..a85986a6 100644
--- a/_obnammodule.c
+++ b/_obnammodule.c
@@ -194,11 +194,11 @@ llistxattr_wrapper(PyObject *self, PyObject *args)
size_t i = 0;
while (i < n) {
unsigned char length = (unsigned char) buf[i];
- memmove(buf + i, buf + i + 1, length);
- buf[i + length] = '\0';
- i += length + 1;
- }
- o = Py_BuildValue("s#", buf, (int) n);
+ memmove(buf + i, buf + i + 1, length);
+ buf[i + length] = '\0';
+ i += length + 1;
+ }
+ o = Py_BuildValue("s#", buf, (int) n);
} else {
o = Py_BuildValue("i", errno);
}
@@ -247,7 +247,7 @@ lgetxattr_wrapper(PyObject *self, PyObject *args)
return Py_None;
}
#ifdef __FreeBSD__
- int n = extattr_get_link(filename, EXTATTR_NAMESPACE_USER,
+ int n = extattr_get_link(filename, EXTATTR_NAMESPACE_USER,
attrname, buf, bufsize);
#else
ssize_t n = lgetxattr(filename, attrname, buf, bufsize);