From c217ab36a03a9d00a790af3963d3041bf03e6985 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 24 Aug 2014 00:46:58 +0200 Subject: m + do not any assumtion of int typedefs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mds-base.c') diff --git a/src/mds-base.c b/src/mds-base.c index 672a1d5..b2d1935 100644 --- a/src/mds-base.c +++ b/src/mds-base.c @@ -21,6 +21,7 @@ #include #include +#include #include #include #include @@ -358,7 +359,7 @@ static int base_unmarshal(void) char* state_buf_; /* Acquire access to marshalled data. */ - xsnprintf(shm_path, SHM_PATH_PATTERN, (unsigned long int)pid); + xsnprintf(shm_path, SHM_PATH_PATTERN, (intmax_t)pid); reexec_fd = shm_open(shm_path, O_RDONLY, S_IRWXU); fail_if (reexec_fd < 0); /* Critical. */ -- cgit v1.2.3-70-g09d2