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_posix.c | |
parent | bf7ce346d8a1ffb4fa499a2a8d70bdcfc3b2b77e (diff) | |
download | psutil-f6ade0fe9b4f793b026a25a3df52c1715e1749d8.tar.gz |
C styling
Diffstat (limited to 'psutil/_psutil_posix.c')
-rw-r--r-- | psutil/_psutil_posix.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/psutil/_psutil_posix.c b/psutil/_psutil_posix.c index 284f7fc5..884a8707 100644 --- a/psutil/_psutil_posix.c +++ b/psutil/_psutil_posix.c @@ -74,8 +74,7 @@ psutil_posix_setpriority(PyObject *self, PyObject *args) { * Return None if address family is not AF_INET* or AF_PACKET. */ static PyObject * -psutil_convert_ipaddr(struct sockaddr *addr, int family) -{ +psutil_convert_ipaddr(struct sockaddr *addr, int family) { char buf[NI_MAXHOST]; int err; int addrlen; @@ -152,8 +151,7 @@ psutil_convert_ipaddr(struct sockaddr *addr, int family) * TODO: on Solaris we won't get any MAC address. */ static PyObject* -psutil_net_if_addrs(PyObject* self, PyObject* args) -{ +psutil_net_if_addrs(PyObject* self, PyObject* args) { struct ifaddrs *ifaddr, *ifa; int family; @@ -467,8 +465,7 @@ error: * define the psutil C module methods and initialize the module. */ static PyMethodDef -PsutilMethods[] = -{ +PsutilMethods[] = { {"getpriority", psutil_posix_getpriority, METH_VARARGS, "Return process priority"}, {"setpriority", psutil_posix_setpriority, METH_VARARGS, |