Skip to content

Commit

Permalink
Fixed Sockaddr layout.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 15, 2013
1 parent bc51736 commit 553a024
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/ffi/libc/sockaddr.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ module LibC
#
class Sockaddr < SockaddrFamily

layout :len, :uint8,
:family, :sa_family_t,
:data, :char
layout :family, :sa_family_t,
:data, [:char, 14]

end
end
Expand Down

0 comments on commit 553a024

Please sign in to comment.