summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-08 20:27:01 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-08 20:27:01 +0000
commitfa93be2f054cfb71fde486e8690edb7e702d85cb (patch)
tree4e6ca742ca40bacb5ad603020416497774f2088e
parent0626d9b91c8e64dbbe90fd966ea95d2c80f9632e (diff)
* remove trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--error.c6
-rw-r--r--ext/socket/rubysocket.h2
-rw-r--r--misc/ruby-electric.el2
-rw-r--r--test/socket/test_udp.rb2
4 files changed, 6 insertions, 6 deletions
diff --git a/error.c b/error.c
index 0261ec9388..661b50b4f1 100644
--- a/error.c
+++ b/error.c
@@ -1187,12 +1187,12 @@ set_syserr(int n, const char *name)
if (!st_lookup(syserr_tbl, n, &error)) {
error = rb_define_class_under(rb_mErrno, name, rb_eSystemCallError);
-
+
/* capture nonblock errnos for WaitReadable/WaitWritable subclasses */
switch (n) {
case EAGAIN:
rb_eEAGAIN = error;
-
+
#if EAGAIN != EWOULDBLOCK
break;
case EWOULDBLOCK:
@@ -1204,7 +1204,7 @@ set_syserr(int n, const char *name)
rb_eEINPROGRESS = error;
break;
}
-
+
rb_define_const(error, "Errno", INT2NUM(n));
st_add_direct(syserr_tbl, n, error);
}
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h
index adf2f930be..5369f566a4 100644
--- a/ext/socket/rubysocket.h
+++ b/ext/socket/rubysocket.h
@@ -163,7 +163,7 @@ typedef union {
#ifdef HAVE_TYPE_STRUCT_SOCKADDR_UN
struct sockaddr_un un;
#endif
- struct sockaddr_storage storage;
+ struct sockaddr_storage storage;
char place_holder[2048]; /* sockaddr_storage is not enough for Unix domain sockets on SunOS and Darwin. */
} union_sockaddr;
diff --git a/misc/ruby-electric.el b/misc/ruby-electric.el
index 441f77be03..a0cbdc8513 100644
--- a/misc/ruby-electric.el
+++ b/misc/ruby-electric.el
@@ -52,7 +52,7 @@
(defgroup ruby-electric nil
"Minor mode providing electric editing commands for ruby files"
- :group 'ruby)
+ :group 'ruby)
(defconst ruby-electric-expandable-do-re
"do\\s-$")
diff --git a/test/socket/test_udp.rb b/test/socket/test_udp.rb
index 82b5a5daa9..e75d2c7881 100644
--- a/test/socket/test_udp.rb
+++ b/test/socket/test_udp.rb
@@ -45,7 +45,7 @@ class TestSocket_UDPSocket < Test::Unit::TestCase
in_use.bind(host, port)
s = UDPSocket.new
-
+
e = assert_raises(Errno::EADDRINUSE) do
s.bind(host, port)
end