processes: use long for pids on linux and solaris
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 16 Feb 2016 09:28:04 +0000 (10:28 +0100)
committerMarc Fournier <marc.fournier@camptocamp.com>
Sat, 27 Feb 2016 22:55:53 +0000 (23:55 +0100)
Up to now, we had a mix of `int`, `long` and `pid_t` to represent the
variable part of `/proc/<PID>/status` and friends. This patch
standardizes on `long` on the Linux and Solaris platforms.

The max size of `int` is smaller than the maximum number of processes
current kernels support. `pid_t` is used to ensure portability of
functions such as `getpid()`, which aren't used in this plugin, and
apparently resolves to an `int` on Solaris.

This is a follow up to bb978c1, which triggered a format string issue on
solaris 64 bit.


No differences found