summaryrefslogtreecommitdiff
path: root/psutil/_psutil_linux.c
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-02-09 21:55:23 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2020-02-09 21:55:23 +0100
commit05758f6978aefea709150898ae285b3ff3688c7c (patch)
treed9cc698fd83fb857fc27ca71e0399a3a113f43cb /psutil/_psutil_linux.c
parent796b2dda2e0d8751eee0a4d16ab8c027839f8908 (diff)
downloadpsutil-05758f6978aefea709150898ae285b3ff3688c7c.tar.gz
#1672, #1682: SIZEOF_INT is not available on pypy3; assume that on systems where pid_t size can't be determined at runtime pid_t is an int
Diffstat (limited to 'psutil/_psutil_linux.c')
-rw-r--r--psutil/_psutil_linux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/psutil/_psutil_linux.c b/psutil/_psutil_linux.c
index 93cc071b..ec8b433a 100644
--- a/psutil/_psutil_linux.c
+++ b/psutil/_psutil_linux.c
@@ -204,7 +204,7 @@ static PyObject *
psutil_disk_partitions(PyObject *self, PyObject *args) {
FILE *file = NULL;
struct mntent *entry;
- const char *mtab_path;
+ char *mtab_path;
PyObject *py_dev = NULL;
PyObject *py_mountp = NULL;
PyObject *py_tuple = NULL;