summaryrefslogtreecommitdiffhomepage
path: root/src/internal
diff options
context:
space:
mode:
Diffstat (limited to 'src/internal')
-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(