mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Prevent a warning: old-style function definition
ipsocket.c:57:1: warning: old-style function definition [-Wold-style-definition] 57 | current_clocktime() | ^~~~~~~~~~~~~~~~~
This commit is contained in:
parent
fbaad485db
commit
7e64a68252
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ inetsock_cleanup(VALUE v)
|
||||||
}
|
}
|
||||||
|
|
||||||
static VALUE
|
static VALUE
|
||||||
current_clocktime()
|
current_clocktime(void)
|
||||||
{
|
{
|
||||||
VALUE clock_monotnic_const = rb_const_get(rb_mProcess, rb_intern("CLOCK_MONOTONIC"));
|
VALUE clock_monotnic_const = rb_const_get(rb_mProcess, rb_intern("CLOCK_MONOTONIC"));
|
||||||
return rb_funcall(rb_mProcess, rb_intern("clock_gettime"), 1, clock_monotnic_const);
|
return rb_funcall(rb_mProcess, rb_intern("clock_gettime"), 1, clock_monotnic_const);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue