From: Thierry Parmentelat Date: Wed, 15 Jan 2014 09:46:26 +0000 (+0100) Subject: just re-order X-Git-Tag: lxc-userspace-1.0-9~15 X-Git-Url: http://git.onelab.eu/?p=lxc-userspace.git;a=commitdiff_plain;h=599fef7a8160912979226e6b2ddfdc373aad9fdf just re-order --- diff --git a/setns.c b/setns.c index e82bd26..e562cd6 100644 --- a/setns.c +++ b/setns.c @@ -4,6 +4,25 @@ #include #include +static PyObject * +proc_mount(PyObject *self, PyObject *args) +{ + int sts; + sts = mount("none","/proc","proc",0,NULL); + + return Py_BuildValue("i", sts); +} + +static PyObject * +proc_umount(PyObject *self, PyObject *args) +{ + int sts; + sts = umount("/proc"); + + return Py_BuildValue("i", sts); + +} + static PyObject * chfscontext(PyObject *self, PyObject *args) { @@ -28,25 +47,6 @@ out: return Py_BuildValue("i", sts); } -static PyObject * -proc_mount(PyObject *self, PyObject *args) -{ - int sts; - sts = mount("none","/proc","proc",0,NULL); - - return Py_BuildValue("i", sts); -} - -static PyObject * -proc_umount(PyObject *self, PyObject *args) -{ - int sts; - sts = umount("/proc"); - - return Py_BuildValue("i", sts); - -} - static PyObject * chcontext(PyObject *self, PyObject *args) {