From 348dde11507e1c337fb804a017e20cccfe5637b1 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Thu, 29 Feb 2024 23:44:23 -0300 Subject: [PATCH] Define constants on `BSD::Control` --- ext/hbsdctl.rb/hbsdctl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/hbsdctl.rb/hbsdctl.c b/ext/hbsdctl.rb/hbsdctl.c index 184d151..743cb26 100644 --- a/ext/hbsdctl.rb/hbsdctl.c +++ b/ext/hbsdctl.rb/hbsdctl.c @@ -61,9 +61,9 @@ Init_hbsdctl(void) rb_cFeature = rb_const_get(rb_mControl, rb_intern("Feature")), rb_mFFI = rb_const_get(rb_mControl, rb_intern("FFI")); - rb_define_const(rb_mBSD, "SysDef", -1); - rb_define_const(rb_mBSD, "Disable", 0); - rb_define_const(rb_mBSD, "Enable", 1); + rb_define_const(rb_mControl, "SysDef", -1); + rb_define_const(rb_mControl, "Disable", 0); + rb_define_const(rb_mControl, "Enable", 1); rb_define_singleton_method(rb_mFFI, "available_features", ffi_available_features, 0); rb_define_method(rb_cFeature, "set!", feature_set, 2); }