summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorRichard PALO <richard@NetBSD.org>2016-05-29 08:16:28 +0200
committerMichael Stahl <mstahl@redhat.com>2016-05-30 09:21:02 +0000
commitacbbb01940588604de965c4fcef64b2e17473fe6 (patch)
tree208488f44af175cb65902a4a649dc0a3d3123662 /sal
parentee1bf3538b139220f5f55778202e5606f4dd74c6 (diff)
tdf#100021 - format argument issue in process.cxx
avoid warning whether pid_t is long or int Change-Id: I533175b53166cb233169902d277906f5ce979421 Signed-off-by: Richard PALO <richard@NetBSD.org> Reviewed-on: https://gerrit.libreoffice.org/25593 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Michael Stahl <mstahl@redhat.com>
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/process.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx
index 4d372a3eb3d0..9a9ba28c9e08 100644
--- a/sal/osl/unx/process.cxx
+++ b/sal/osl/unx/process.cxx
@@ -1023,7 +1023,7 @@ oslProcessError SAL_CALL osl_getProcessInfo(oslProcess Process, oslProcessData F
int fd;
sal_Char name[PATH_MAX + 1];
- snprintf(name, sizeof(name), "/proc/%u", pid);
+ snprintf(name, sizeof(name), "/proc/%ld", (long)pid);
if ((fd = open(name, O_RDONLY)) >= 0)
{