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>
This commit is contained in:
Richard PALO
2016-05-30 09:21:02 +00:00
committed by Michael Stahl
parent ee1bf3538b
commit acbbb01940
+1 -1
View File
@@ -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)
{