Skip to content

Commit

Permalink
Fixed FFI attach_function calls in syslog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Ford committed Jan 31, 2009
1 parent 17f9499 commit fcbb626
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/syslog.rb.ffi
Expand Up @@ -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
Expand Down

0 comments on commit fcbb626

Please sign in to comment.