summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-06-23 03:15:55 +0900
committerGitHub <noreply@github.com>2023-06-23 03:15:55 +0900
commitb934976024ef4e1694ec47158d94bce0f6d003b7 (patch)
treed6b65723139d916891d740e5107f921b4beb861c /time.c
parent52f8de4f21b147468567f422ac9551ae5c194164 (diff)
Prefer `0` over `NULL` as function pointers
SunC warns use of `NULL`, pointer to data as function pointers.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7972 Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'time.c')
-rw-r--r--time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/time.c b/time.c
index 4dbdd3cf7d..d3eb4be682 100644
--- a/time.c
+++ b/time.c
@@ -5828,7 +5828,7 @@ Init_Time(void)
if (debug_find_time_numguess) {
rb_define_hooked_variable("$find_time_numguess", (VALUE *)&find_time_numguess,
- find_time_numguess_getter, NULL);
+ find_time_numguess_getter, 0);
}
rb_cTimeTM = Init_tm(rb_cTime, "tm");