summaryrefslogtreecommitdiff
path: root/sal/osl/unx/process.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/unx/process.cxx')
-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)
{