diff options
Diffstat (limited to 'ext/dl/sample/libc.rb')
-rw-r--r-- | ext/dl/sample/libc.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/dl/sample/libc.rb b/ext/dl/sample/libc.rb index cb16aa043f..7d1de2601d 100644 --- a/ext/dl/sample/libc.rb +++ b/ext/dl/sample/libc.rb @@ -57,8 +57,8 @@ ptr = ary.to_ptr LIBC.qsort(ptr, ary.length, DL.sizeof('P'), $cb1) p ptr.to_a('S', ary.length) -tv = LIBC::Timeval.alloc -tz = LIBC::Timezone.alloc +tv = LIBC::Timeval.malloc +tz = LIBC::Timezone.malloc LIBC.gettimeofday(tv, tz) p Time.at(tv.tv_sec) |