[前][次][番号順一覧][スレッド一覧]

ruby-changes:70154

From: Yuta <ko1@a...>
Date: Sat, 11 Dec 2021 02:24:06 +0900 (JST)
Subject: [ruby-changes:70154] ecb2ff6050 (master): intern/select/posix.h: remove unused parameter from rb_fd_dup

https://git.ruby-lang.org/ruby.git/commit/?id=ecb2ff6050

From ecb2ff60507a41c624f59cb9da6a008ab3ec36e1 Mon Sep 17 00:00:00 2001
From: Yuta Saito <kateinoigakukun@g...>
Date: Sat, 11 Dec 2021 00:51:41 +0900
Subject: intern/select/posix.h: remove unused parameter from rb_fd_dup

This unused parameter seems to be accidently introduced by https://github.com/ruby/ruby/commit/9e6e39c
---
 include/ruby/internal/intern/select/posix.h | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/include/ruby/internal/intern/select/posix.h b/include/ruby/internal/intern/select/posix.h
index bfde1598905..5f828e66e2c 100644
--- a/include/ruby/internal/intern/select/posix.h
+++ b/include/ruby/internal/intern/select/posix.h
@@ -95,11 +95,10 @@ RBIMPL_ATTR_NOALIAS() https://github.com/ruby/ruby/blob/trunk/include/ruby/internal/intern/select/posix.h#L95
  *
  * @param[out]  dst   Target fdset.
  * @param[in]   src   Source fdset.
- * @param[in]   n     Unused parameter.
  * @post        `dst` is a copy of `src`.
  */
 static inline void
-rb_fd_dup(rb_fdset_t *dst, const fd_set *src, int n)
+rb_fd_dup(rb_fdset_t *dst, const fd_set *src)
 {
     *dst = *src;
 }
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]