summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0261ec9..661b50b 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 adf2f93..5369f56 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 441f77b..a0cbdc8 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 82b5a5d..e75d2c7 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