diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-06 05:38:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-02-06 05:38:11 +0000 |
commit | 088474a20dff97f11a71c8f2f5c240bbb0283d46 (patch) | |
tree | c30f4e07286f7c37082143eaa5329f5d5b9f8540 /ext/pty/pty.c | |
parent | b5f628a84aa42724a01d6ad97abac46f857ff08b (diff) | |
download | ruby-088474a20dff97f11a71c8f2f5c240bbb0283d46.tar.gz |
* ext/pty/pty.c (chfunc): suppress a warning.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30808 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/pty/pty.c')
-rw-r--r-- | ext/pty/pty.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 76543dbaec..36392f2270 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -205,7 +205,8 @@ chfunc(void *data, char *errbuf, size_t errbuf_len) seteuid(getuid()); #endif - return rb_f_exec(argc, argv); + rb_f_exec(argc, argv); + return 0; #undef ERROR_EXIT } |