summaryrefslogtreecommitdiff
path: root/ext/etc/etc.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-20 18:02:17 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-06-20 18:02:17 +0000
commit1b7465e893131c8a8b27078704223ecfb2311119 (patch)
tree1ef49f987a8f65bdb2c1396bf681c4f4e2ca8b6c /ext/etc/etc.c
parent866e083484738db8ba8b8b37674d9292ef7cb84a (diff)
* eval.c, file.c, etc.: code-cleanup patch from Stefan Huehner
<stefan at huehner.org>. [ruby-core:08029] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10351 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/etc/etc.c')
-rw-r--r--ext/etc/etc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index 6235d76..64d46c7 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -40,8 +40,7 @@ char *getlogin();
* Etc.getlogin -> 'guest'
*/
static VALUE
-etc_getlogin(obj)
- VALUE obj;
+etc_getlogin(VALUE obj)
{
char *login;
@@ -60,8 +59,7 @@ etc_getlogin(obj)
#if defined(HAVE_GETPWENT) || defined(HAVE_GETGRENT)
static VALUE
-safe_setup_str(str)
- const char *str;
+safe_setup_str(const char *str)
{
if (str == 0) str = "";
return rb_tainted_str_new2(str);