diff options
author | Giampaolo Rodola <g.rodola@gmail.com> | 2015-11-12 12:38:31 +0100 |
---|---|---|
committer | Giampaolo Rodola <g.rodola@gmail.com> | 2015-11-12 12:38:31 +0100 |
commit | bfd4ef9c0c12037bb6ab00551338004bb20b7d46 (patch) | |
tree | 4ff5d9743f636e91826ab4e8ddb07fe49c98ada6 | |
parent | 292fd9461747066ef0e07afba07a6af4bc51b387 (diff) | |
download | psutil-bfd4ef9c0c12037bb6ab00551338004bb20b7d46.tar.gz |
fix compiler warnings
-rw-r--r-- | psutil/_psutil_bsd.h | 11 | ||||
-rw-r--r-- | psutil/arch/bsd/freebsd.h | 1 |
2 files changed, 0 insertions, 12 deletions
diff --git a/psutil/_psutil_bsd.h b/psutil/_psutil_bsd.h index 41d548be..cf3d5fa3 100644 --- a/psutil/_psutil_bsd.h +++ b/psutil/_psutil_bsd.h @@ -11,14 +11,12 @@ static PyObject* psutil_proc_cmdline(PyObject* self, PyObject* args); static PyObject* psutil_proc_cpu_times(PyObject* self, PyObject* args); static PyObject* psutil_proc_create_time(PyObject* self, PyObject* args); -static PyObject* psutil_proc_exe(PyObject* self, PyObject* args); static PyObject* psutil_proc_gids(PyObject* self, PyObject* args); static PyObject* psutil_proc_io_counters(PyObject* self, PyObject* args); static PyObject* psutil_proc_memory_info(PyObject* self, PyObject* args); static PyObject* psutil_proc_memory_maps(PyObject* self, PyObject* args); static PyObject* psutil_proc_name(PyObject* self, PyObject* args); static PyObject* psutil_proc_num_ctx_switches(PyObject* self, PyObject* args); -static PyObject* psutil_proc_num_threads(PyObject* self, PyObject* args); static PyObject* psutil_proc_ppid(PyObject* self, PyObject* args); static PyObject* psutil_proc_status(PyObject* self, PyObject* args); static PyObject* psutil_proc_tty_nr(PyObject* self, PyObject* args); @@ -30,12 +28,6 @@ static PyObject* psutil_proc_cpu_affinity_set(PyObject* self, PyObject* args); static PyObject* psutil_proc_open_files(PyObject* self, PyObject* args); #endif #if defined(__FreeBSD_version) && __FreeBSD_version >= 800000 -static PyObject* psutil_proc_cwd(PyObject* self, PyObject* args); -#endif -#ifdef __FreeBSD__ -static PyObject* psutil_proc_threads(PyObject* self, PyObject* args); -#endif -#if defined(__FreeBSD_version) && __FreeBSD_version >= 800000 static PyObject* psutil_proc_num_fds(PyObject* self, PyObject* args); #endif #ifdef __FreeBSD__ @@ -46,15 +38,12 @@ static PyObject* psutil_proc_connections(PyObject* self, PyObject* args); static PyObject* psutil_boot_time(PyObject* self, PyObject* args); static PyObject* psutil_cpu_count_logical(PyObject* self, PyObject* args); -static PyObject* psutil_cpu_count_phys(PyObject* self, PyObject* args); static PyObject* psutil_cpu_times(PyObject* self, PyObject* args); static PyObject* psutil_disk_partitions(PyObject* self, PyObject* args); static PyObject* psutil_net_io_counters(PyObject* self, PyObject* args); static PyObject* psutil_pids(PyObject* self, PyObject* args); static PyObject* psutil_users(PyObject* self, PyObject* args); #ifdef __FreeBSD__ -static PyObject* psutil_virtual_mem(PyObject* self, PyObject* args); -static PyObject* psutil_swap_mem(PyObject* self, PyObject* args); static PyObject* psutil_disk_io_counters(PyObject* self, PyObject* args); #endif diff --git a/psutil/arch/bsd/freebsd.h b/psutil/arch/bsd/freebsd.h index c6cd7595..d74d0ddb 100644 --- a/psutil/arch/bsd/freebsd.h +++ b/psutil/arch/bsd/freebsd.h @@ -10,7 +10,6 @@ typedef struct kinfo_proc kinfo_proc; int psutil_kinfo_proc(const pid_t pid, struct kinfo_proc *proc); char *psutil_get_cmd_args(long pid, size_t *argsize); -char *psutil_get_cmd_path(long pid, size_t *pathsize); int psutil_get_proc_list(struct kinfo_proc **procList, size_t *procCount); int psutil_pid_exists(long pid); |