diff options
| author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-08-06 11:52:42 +0200 |
|---|---|---|
| committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-08-06 11:52:42 +0200 |
| commit | f6ade0fe9b4f793b026a25a3df52c1715e1749d8 (patch) | |
| tree | 4856cfba677f34df903718de2ee25ab95a358e9e /psutil/_psutil_linux.c | |
| parent | bf7ce346d8a1ffb4fa499a2a8d70bdcfc3b2b77e (diff) | |
| download | psutil-f6ade0fe9b4f793b026a25a3df52c1715e1749d8.tar.gz | |
C styling
Diffstat (limited to 'psutil/_psutil_linux.c')
| -rw-r--r-- | psutil/_psutil_linux.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/psutil/_psutil_linux.c b/psutil/_psutil_linux.c index 342d844d..5c365939 100644 --- a/psutil/_psutil_linux.c +++ b/psutil/_psutil_linux.c @@ -59,14 +59,12 @@ enum { #endif static inline int -ioprio_get(int which, int who) -{ +ioprio_get(int which, int who) { return syscall(__NR_ioprio_get, which, who); } static inline int -ioprio_set(int which, int who, int ioprio) -{ +ioprio_set(int which, int who, int ioprio) { return syscall(__NR_ioprio_set, which, who, ioprio); } @@ -469,8 +467,7 @@ error: * http://www.i-scream.org/libstatgrab/ */ static PyObject* -psutil_net_if_stats(PyObject* self, PyObject* args) -{ +psutil_net_if_stats(PyObject* self, PyObject* args) { char *nic_name; int sock = 0; int ret; @@ -547,8 +544,8 @@ error: * Define the psutil C module methods and initialize the module. */ static PyMethodDef -PsutilMethods[] = -{ +PsutilMethods[] = { + // --- per-process functions #if PSUTIL_HAVE_IOPRIO |
