summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-02-23 21:51:28 +0100
committerBoris Faure <billiob@gmail.com>2015-02-23 21:51:28 +0100
commit2de1cd87b60b32adcb2c5373fbdb097391506e9f (patch)
tree1f224bd52ddfcd224c1e77ee9f15e204e2da9fc5 /src
parent2d710e570505bbf62743de2b2f41563bc84c9e37 (diff)
pid_t can be long (on solaris)
Diffstat (limited to 'src')
-rw-r--r--src/bin/termio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/termio.c b/src/bin/termio.c
index e4c5be5..b092d0a 100644
--- a/src/bin/termio.c
+++ b/src/bin/termio.c
@@ -543,7 +543,7 @@ termio_cwd_get(const Evas_Object *obj, char *buf, size_t size)
543 char procpath[PATH_MAX]; 543 char procpath[PATH_MAX];
544 ssize_t siz; 544 ssize_t siz;
545 545
546 snprintf(procpath, sizeof(procpath), "/proc/%d/cwd", pid); 546 snprintf(procpath, sizeof(procpath), "/proc/%ld/cwd", (long) pid);
547 if ((siz = readlink(procpath, buf, size)) < 1) 547 if ((siz = readlink(procpath, buf, size)) < 1)
548 { 548 {
549 ERR(_("Could not load working directory %s: %s"), 549 ERR(_("Could not load working directory %s: %s"),