Cast pid_t to long long (similar to other OSes). - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 830c9b6c44cb34ca9ad2bd28e235ef0f12b3eb59
(DIR) parent 261c2c0a30e0774e482754a48462621c9f677c82
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Fri, 16 Nov 2018 14:16:06
Cast pid_t to long long (similar to other OSes).
Diffstat:
misc/tmux/patch-osdep-netbsd.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff -r 261c2c0a30e0 -r 830c9b6c44cb misc/tmux/patch-osdep-netbsd.c
--- a/misc/tmux/patch-osdep-netbsd.c Mon Nov 12 21:38:59 2018 +0100
+++ b/misc/tmux/patch-osdep-netbsd.c Fri Nov 16 14:16:06 2018 +0100
@@ -30,7 +30,7 @@
+ if ((pgrp = tcgetpgrp(fd)) == -1)
+ return (NULL);
+
-+ xasprintf(&path, "/proc/%u/cwd", (u_int) pgrp);
++ xasprintf(&path, "/proc/%lld/cwd", (long long) pgrp);
+ n = readlink(path, target, sizeof(target) - 1);
+ free(path);
+ if (n > 0) {