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:
Yusuke Endoh 2025-07-23 16:46:01 +09:00
parent fbaad485db
commit 7e64a68252

View file

@ -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);