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/branches/ruby_1_8@18053 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
bee3668868
commit
ed1605fbf3
2 changed files with 11 additions and 6 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.
|
||||||
|
|
||||||
Sat Jul 12 16:02:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Sat Jul 12 16:02:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requires
|
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requires
|
||||||
|
|
|
||||||
|
|
@ -130,8 +130,8 @@ struct pty_info {
|
||||||
|
|
||||||
static void
|
static void
|
||||||
raise_from_wait(state, info)
|
raise_from_wait(state, info)
|
||||||
struct pty_info *info;
|
const char *state;
|
||||||
char *state;
|
const struct pty_info *info;
|
||||||
{
|
{
|
||||||
extern VALUE rb_last_status;
|
extern VALUE rb_last_status;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
|
@ -144,9 +144,9 @@ raise_from_wait(state, info)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
pty_syswait(info)
|
pty_syswait(void *arg)
|
||||||
struct pty_info *info;
|
|
||||||
{
|
{
|
||||||
|
const struct pty_info *info = arg;
|
||||||
int cpid, status;
|
int cpid, status;
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
|
@ -204,7 +204,7 @@ establishShell(argc, argv, info, SlaveName)
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
if (argc == 0) {
|
if (argc == 0) {
|
||||||
char *shellname;
|
const char *shellname;
|
||||||
|
|
||||||
if ((p = getenv("SHELL")) != NULL) {
|
if ((p = getenv("SHELL")) != NULL) {
|
||||||
shellname = p;
|
shellname = p;
|
||||||
|
|
@ -372,7 +372,7 @@ get_device_once(master, slave, SlaveName, 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
Add a link
Reference in a new issue