summaryrefslogtreecommitdiff
path: root/ruby
diff options
context:
space:
mode:
authorRuss Allbery <rra@stanford.edu>2011-05-14 18:48:43 -0700
committerRuss Allbery <rra@stanford.edu>2011-05-14 18:48:43 -0700
commitcc4521b39afff6e60e1a6ea1bd274dddf9a399eb (patch)
treed6e1c8d309ea82b09beab44078aaf30cf0cdc2ad /ruby
parentdc635dbb2cda07acf3e0a31eabe2952a08c3d4fc (diff)
Update warning flags for GCC 4.6.1
Fix a few minor issues that turned up with the new, stricter warnings.
Diffstat (limited to 'ruby')
-rw-r--r--ruby/remctl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ruby/remctl.c b/ruby/remctl.c
index 5718b35..d7a6cda 100644
--- a/ruby/remctl.c
+++ b/ruby/remctl.c
@@ -392,7 +392,6 @@ rb_remctl_initialize(int argc, VALUE argv[], VALUE self)
{
VALUE vhost, vport, vprinc, vdefport, vdefprinc;
unsigned int port;
- char *host, *princ;
rb_define_attr(cRemctl, "host", 1, 0);
rb_define_attr(cRemctl, "port", 1, 0);
@@ -404,9 +403,7 @@ rb_remctl_initialize(int argc, VALUE argv[], VALUE self)
vport = vdefport;
if (NIL_P(vprinc))
vprinc = vdefprinc;
- host = StringValuePtr(vhost);
- port = NIL_P(vport) ? 0 : FIX2UINT(vport);
- princ = NIL_P(vprinc) ? NULL : StringValuePtr(vprinc);
+ port = NIL_P(vport) ? 0 : FIX2UINT(vport);
if (port > 65535)
rb_raise(rb_eArgError, "Port number %u out of range", port);