diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-24 00:46:58 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-24 00:46:58 +0200 |
commit | c217ab36a03a9d00a790af3963d3041bf03e6985 (patch) | |
tree | f190ac27ad68b24bb49530e76bdaa1607b97b521 /src/mds-base.c | |
parent | update todo (diff) | |
download | mds-c217ab36a03a9d00a790af3963d3041bf03e6985.tar.gz mds-c217ab36a03a9d00a790af3963d3041bf03e6985.tar.bz2 mds-c217ab36a03a9d00a790af3963d3041bf03e6985.tar.xz |
m + do not any assumtion of int typedefs
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src/mds-base.c')
-rw-r--r-- | src/mds-base.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <libmdsserver/macros.h> #include <libmdsserver/util.h> +#include <stdint.h> #include <stdlib.h> #include <string.h> #include <limits.h> @@ -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. */ |