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>
|
||||
|
||||
* lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requires
|
||||
|
|
|
@ -130,8 +130,8 @@ struct pty_info {
|
|||
|
||||
static void
|
||||
raise_from_wait(state, info)
|
||||
struct pty_info *info;
|
||||
char *state;
|
||||
const char *state;
|
||||
const struct pty_info *info;
|
||||
{
|
||||
extern VALUE rb_last_status;
|
||||
char buf[1024];
|
||||
|
@ -144,9 +144,9 @@ raise_from_wait(state, info)
|
|||
}
|
||||
|
||||
static VALUE
|
||||
pty_syswait(info)
|
||||
struct pty_info *info;
|
||||
pty_syswait(void *arg)
|
||||
{
|
||||
const struct pty_info *info = arg;
|
||||
int cpid, status;
|
||||
|
||||
for (;;) {
|
||||
|
@ -204,7 +204,7 @@ establishShell(argc, argv, info, SlaveName)
|
|||
int status;
|
||||
|
||||
if (argc == 0) {
|
||||
char *shellname;
|
||||
const char *shellname;
|
||||
|
||||
if ((p = getenv("SHELL")) != NULL) {
|
||||
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");
|
||||
return -1;
|
||||
#else
|
||||
char **p;
|
||||
const char *const *p;
|
||||
char MasterName[DEVICELEN];
|
||||
|
||||
for (p = deviceNo; *p != NULL; p++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue