Browse files

Fixed FFI attach_function calls in syslog.

  • Loading branch information...
1 parent 17f9499 commit fcbb6267b87ba41db10f9bf95b32345b4a66fddf Brian Ford committed Jan 31, 2009
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/syslog.rb.ffi
View
10 lib/syslog.rb.ffi
@@ -65,11 +65,13 @@ module Syslog
include Constants
module Foreign
+ extend FFI::Library
+
# methods
- attach_function "openlog", :open, [:string, :int, :int], :void
- attach_function "closelog", :close, [], :void
- attach_function "syslog", :write, [:int, :string, :string], :void
- attach_function "setlogmask", :set_mask, [:int], :int
+ attach_function :open, "openlog", [:string, :int, :int], :void
+ attach_function :close, "closelog", [], :void
+ attach_function :write, "syslog", [:int, :string, :string], :void
+ attach_function :set_mask, "setlogmask", [:int], :int
end
class << self

0 comments on commit fcbb626

Please sign in to comment.