mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/pty/pty.c (raise_from_wait, pty_syswait, get_device_once):
constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eb43e44cd0
commit
b7000ccfa0
2 changed files with 9 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Jul 13 06:57:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/pty/pty.c (raise_from_wait, pty_syswait, get_device_once):
|
||||||
|
constified.
|
||||||
|
|
||||||
Sun Jul 13 05:37:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
Sun Jul 13 05:37:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): typo.
|
* include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): typo.
|
||||||
|
|
|
@ -131,7 +131,7 @@ struct pty_info {
|
||||||
};
|
};
|
||||||
|
|
||||||
static void
|
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];
|
char buf[1024];
|
||||||
VALUE exc;
|
VALUE exc;
|
||||||
|
@ -143,8 +143,9 @@ raise_from_wait(char *state, struct pty_info *info)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
pty_syswait(struct pty_info *info)
|
pty_syswait(void *arg)
|
||||||
{
|
{
|
||||||
|
const struct pty_info *const info = arg;
|
||||||
rb_pid_t cpid;
|
rb_pid_t cpid;
|
||||||
int status;
|
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");
|
if (!fail) rb_raise(rb_eRuntimeError, "can't get Master/Slave device");
|
||||||
return -1;
|
return -1;
|
||||||
#else
|
#else
|
||||||
char **p;
|
const char *const *p;
|
||||||
char MasterName[DEVICELEN];
|
char MasterName[DEVICELEN];
|
||||||
|
|
||||||
for (p = deviceNo; *p != NULL; p++) {
|
for (p = deviceNo; *p != NULL; p++) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue