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

ruby-changes:69455

From: Nobuyoshi <ko1@a...>
Date: Tue, 26 Oct 2021 14:43:45 +0900 (JST)
Subject: [ruby-changes:69455] 049e1f8560 (master): Fix typo

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

From 049e1f8560d2f5c06afa6b8fbcf7d4c8e0132561 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 25 Oct 2021 10:03:17 +0900
Subject: Fix typo

---
 io.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/io.c b/io.c
index fceb7019f1b..38f51a3dac3 100644
--- a/io.c
+++ b/io.c
@@ -9933,7 +9933,7 @@ do_ioctl(int fd, ioctl_req_t cmd, long narg) https://github.com/ruby/ruby/blob/trunk/io.c#L9933
 }
 #endif
 
-#define DEFULT_IOCTL_NARG_LEN (256)
+#define DEFAULT_IOCTL_NARG_LEN (256)
 
 #if defined(__linux__) && defined(_IOC_SIZE)
 static long
@@ -9943,14 +9943,14 @@ linux_iocparm_len(ioctl_req_t cmd) https://github.com/ruby/ruby/blob/trunk/io.c#L9943
 
     if ((cmd & 0xFFFF0000) == 0) {
 	/* legacy and unstructured ioctl number. */
-	return DEFULT_IOCTL_NARG_LEN;
+	return DEFAULT_IOCTL_NARG_LEN;
     }
 
     len = _IOC_SIZE(cmd);
 
     /* paranoia check for silly drivers which don't keep ioctl convention */
-    if (len < DEFULT_IOCTL_NARG_LEN)
-	len = DEFULT_IOCTL_NARG_LEN;
+    if (len < DEFAULT_IOCTL_NARG_LEN)
+	len = DEFAULT_IOCTL_NARG_LEN;
 
     return len;
 }
@@ -9972,7 +9972,7 @@ ioctl_narg_len(ioctl_req_t cmd) https://github.com/ruby/ruby/blob/trunk/io.c#L9972
     len = linux_iocparm_len(cmd);
 #else
     /* otherwise guess at what's safe */
-    len = DEFULT_IOCTL_NARG_LEN;
+    len = DEFAULT_IOCTL_NARG_LEN;
 #endif
 
     return len;
-- 
cgit v1.2.1


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

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