diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-11-12 04:06:27 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-11-12 04:06:27 +0100 |
commit | abf77b0a225915e6f04d7f660d66f5fe47ee57b0 (patch) | |
tree | 6b67b4d67d170be30207e665d68c158796ffb7e6 | |
parent | c29ca33ca2c75ee20c1bcc163153c894d311586b (diff) | |
download | psutil-abf77b0a225915e6f04d7f660d66f5fe47ee57b0.tar.gz |
make the code more similar to mastger
-rw-r--r-- | psutil/_psutil_openbsd.c | 62 |
1 files changed, 31 insertions, 31 deletions
diff --git a/psutil/_psutil_openbsd.c b/psutil/_psutil_openbsd.c index d138d0ce..98e19555 100644 --- a/psutil/_psutil_openbsd.c +++ b/psutil/_psutil_openbsd.c @@ -1309,7 +1309,7 @@ error: #endif -#if 0 +#ifdef __FreeBSD__ // remove spaces from string void remove_spaces(char *str) { char *p1 = str; @@ -1370,36 +1370,36 @@ psutil_proc_memory_maps(PyObject *self, PyObject *args) { if (strlen(kve->kve_path) == 0) { switch (kve->kve_type) { - case KVME_TYPE_NONE: - path = "[none]"; - break; - case KVME_TYPE_DEFAULT: - path = "[default]"; - break; - case KVME_TYPE_VNODE: - path = "[vnode]"; - break; - case KVME_TYPE_SWAP: - path = "[swap]"; - break; - case KVME_TYPE_DEVICE: - path = "[device]"; - break; - case KVME_TYPE_PHYS: - path = "[phys]"; - break; - case KVME_TYPE_DEAD: - path = "[dead]"; - break; - case KVME_TYPE_SG: - path = "[sg]"; - break; - case KVME_TYPE_UNKNOWN: - path = "[unknown]"; - break; - default: - path = "[?]"; - break; + case KVME_TYPE_NONE: + path = "[none]"; + break; + case KVME_TYPE_DEFAULT: + path = "[default]"; + break; + case KVME_TYPE_VNODE: + path = "[vnode]"; + break; + case KVME_TYPE_SWAP: + path = "[swap]"; + break; + case KVME_TYPE_DEVICE: + path = "[device]"; + break; + case KVME_TYPE_PHYS: + path = "[phys]"; + break; + case KVME_TYPE_DEAD: + path = "[dead]"; + break; + case KVME_TYPE_SG: + path = "[sg]"; + break; + case KVME_TYPE_UNKNOWN: + path = "[unknown]"; + break; + default: + path = "[?]"; + break; } } else { |