diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/pty/pty.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 027ca7d5ae..a2cf175673 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -131,7 +131,7 @@ struct pty_info { }; static void -raise_from_wait(char *state, struct pty_info *info) +raise_from_wait(const char *state, const struct pty_info *info) { char buf[1024]; VALUE exc; @@ -143,8 +143,9 @@ raise_from_wait(char *state, struct pty_info *info) } static VALUE -pty_syswait(struct pty_info *info) +pty_syswait(void *arg) { + const struct pty_info *const info = arg; rb_pid_t cpid; int status; @@ -363,7 +364,7 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int fail) if (!fail) rb_raise(rb_eRuntimeError, "can't get Master/Slave device"); return -1; #else - char **p; + const char *const *p; char MasterName[DEVICELEN]; for (p = deviceNo; *p != NULL; p++) { |