diff options
| author | kojix2 <2xijok@gmail.com> | 2024-10-31 12:44:50 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-31 12:44:50 +0900 |
| commit | 550ac2f2edc07d1b63e3755233df0758a652b53f (patch) | |
| tree | 500c2e14f9827a78b81d5187d88e2084f907227f /ext | |
| parent | 583587dfbf524b96593f5469d68c844c7297ba98 (diff) | |
[DOC] Fix typos
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11967
Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/openssl/ossl_bn.c | 4 | ||||
| -rw-r--r-- | ext/pty/pty.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c index 7393fdea56..2d310c4741 100644 --- a/ext/openssl/ossl_bn.c +++ b/ext/openssl/ossl_bn.c @@ -244,7 +244,7 @@ ossl_bn_alloc(VALUE klass) * number. * - +10+ - Decimal number representation, with a leading '-' for a negative * number. - * - +16+ - Hexadeciaml number representation, with a leading '-' for a + * - +16+ - Hexadecimal number representation, with a leading '-' for a * negative number. */ static VALUE @@ -326,7 +326,7 @@ ossl_bn_initialize(int argc, VALUE *argv, VALUE self) * the bignum is ignored. * - +10+ - Decimal number representation, with a leading '-' for a negative * bignum. - * - +16+ - Hexadeciaml number representation, with a leading '-' for a + * - +16+ - Hexadecimal number representation, with a leading '-' for a * negative bignum. */ static VALUE diff --git a/ext/pty/pty.c b/ext/pty/pty.c index 0e04b02d83..725589a8ea 100644 --- a/ext/pty/pty.c +++ b/ext/pty/pty.c @@ -94,7 +94,7 @@ static void getDevice(int*, int*, char [DEVICELEN], int); static int start_new_session(char *errbuf, size_t errbuf_len); static int obtain_ctty(int master, int slave, const char *slavename, char *errbuf, size_t errbuf_len); -static int drop_privilige(char *errbuf, size_t errbuf_len); +static int drop_privilege(char *errbuf, size_t errbuf_len); struct child_info { int master, slave; @@ -117,7 +117,7 @@ chfunc(void *data, char *errbuf, size_t errbuf_len) if (obtain_ctty(master, slave, slavename, errbuf, errbuf_len)) return -1; - if (drop_privilige(errbuf, errbuf_len)) + if (drop_privilege(errbuf, errbuf_len)) return -1; return rb_exec_async_signal_safe(carg->eargp, errbuf, errbuf_len); @@ -185,7 +185,7 @@ obtain_ctty(int master, int slave, const char *slavename, char *errbuf, size_t e } static int -drop_privilige(char *errbuf, size_t errbuf_len) +drop_privilege(char *errbuf, size_t errbuf_len) { #if defined(HAVE_SETEUID) || defined(HAVE_SETREUID) || defined(HAVE_SETRESUID) if (seteuid(getuid())) ERROR_EXIT("seteuid()"); |
