diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-22 20:00:03 +0000 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2023-04-22 20:00:03 +0000 |
commit | 12fe73d2ed9c10ee5fa9b2e9fe00a2a27fe77e22 (patch) | |
tree | 80e7bd56e4d5f11f55eed40930696c0d9642e956 /psutil/_psutil_sunos.c | |
parent | 995fa82a5f0b5013ca5535a9f1669c96d07ef4ca (diff) | |
download | psutil-12fe73d2ed9c10ee5fa9b2e9fe00a2a27fe77e22.tar.gz |
SunOS: fix some C compilation warnings
Signed-off-by: Giampaolo Rodola <g.rodola@gmail.com>
Diffstat (limited to 'psutil/_psutil_sunos.c')
-rw-r--r-- | psutil/_psutil_sunos.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_psutil_sunos.c b/psutil/_psutil_sunos.c index e2e7c018..5422005f 100644 --- a/psutil/_psutil_sunos.c +++ b/psutil/_psutil_sunos.c @@ -129,7 +129,7 @@ psutil_proc_basic_info(PyObject *self, PyObject *args) { */ static int cstrings_array_to_string(char **joined, char ** array, size_t count, char dm) { - int i; + size_t i; size_t total_length = 0; size_t item_length = 0; char *result = NULL; @@ -353,7 +353,7 @@ psutil_proc_cpu_times(PyObject *self, PyObject *args) { */ static PyObject * psutil_proc_cpu_num(PyObject *self, PyObject *args) { - int fd = NULL; + int fd = -1; int pid; char path[1000]; struct prheader header; |