summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-12-26 08:26:19 +0000
committermidipix <writeonce@midipix.org>2016-12-26 03:48:01 -0500
commitff63f9a47bb5a47aa5dc9e0ea20e93be1ee17c6f (patch)
treee45090c65f53d37ffb3f5dcb6461b0f358090237 /src
parenta79b9f466ef44e2d7fdcd107fcb3606cac6f28ed (diff)
downloadptycon-ff63f9a47bb5a47aa5dc9e0ea20e93be1ee17c6f.tar.bz2
ptycon-ff63f9a47bb5a47aa5dc9e0ea20e93be1ee17c6f.tar.xz
ptyc_pty_own(): properly convert the message's uintptr_t members to pid_t size.
Diffstat (limited to 'src')
-rw-r--r--src/internal/ptycon_ioctl_impl.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/internal/ptycon_ioctl_impl.h b/src/internal/ptycon_ioctl_impl.h
index d87ff3a..6c18e49 100644
--- a/src/internal/ptycon_ioctl_impl.h
+++ b/src/internal/ptycon_ioctl_impl.h
@@ -84,7 +84,7 @@ static int32_t ptyc_pty_own(
return status;
/* simulated fork */
- sessioninfo.pid = rtdata->cid_self.process_id;
+ sessioninfo.pid = (int32_t)rtdata->cid_self.process_id;
sessioninfo.pgid = sessioninfo.pgid ? sessioninfo.pgid : -1;
sessioninfo.sid = 0;
sessioninfo.syspid = 0;
@@ -95,9 +95,9 @@ static int32_t ptyc_pty_own(
return status;
/* setsid() */
- sessioninfo.pid = rtdata->cid_self.process_id;
- sessioninfo.pgid = rtdata->cid_self.process_id;
- sessioninfo.sid = rtdata->cid_self.process_id;
+ sessioninfo.pid = (int32_t)rtdata->cid_self.process_id;
+ sessioninfo.pgid = (int32_t)rtdata->cid_self.process_id;
+ sessioninfo.sid = (int32_t)rtdata->cid_self.process_id;
sessioninfo.syspid = 0;
if ((status = ntapi->tty_client_session_set(