sal/osl/unx/process.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit b09eb27b7a52d2abd9bdbf01b4532f23279c6edc
Author: Richard PALO <rich...@netbsd.org>
Date:   Sun May 29 08:16:28 2016 +0200

    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 <rich...@netbsd.org>
    Reviewed-on: https://gerrit.libreoffice.org/25593
    Reviewed-by: Michael Stahl <mst...@redhat.com>
    Tested-by: Michael Stahl <mst...@redhat.com>
    (cherry picked from commit acbbb01940588604de965c4fcef64b2e17473fe6)
    Reviewed-on: https://gerrit.libreoffice.org/25979

diff --git a/sal/osl/unx/process.cxx b/sal/osl/unx/process.cxx
index 4d372a3..9a9ba28 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)
         {
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to