Skip to content

Commit

Permalink
bpf: use the ioctl functions from procket_ioctl
Browse files Browse the repository at this point in the history
Fix an unresolved function call to the obsolete inout/1.
  • Loading branch information
msantos committed Nov 3, 2013
1 parent dcf5f78 commit 6b3f0ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/bpf.erl
Expand Up @@ -367,16 +367,16 @@ ioc(Inout, Group, Num, Len) ->
procket_ioctl:ioc(Inout, Group, Num, Len).

io(G,N) ->
ioc(procket_ioctl:void(bsd), G, N, 0).
procket_ioctl:io(G,N).

iow(G,N,T) ->
ioc(procket_ioctl:in(bsd), G, N, T).
procket_ioctl:iow(G,N,T).

ior(G,N,T) ->
ioc(procket_ioctl:out(bsd), G, N, T).
procket_ioctl:ior(G,N,T).

iowr(G,N,T) ->
ioc(procket_ioctl:inout(bsd), G, N, T).
procket_ioctl:iowr(G,N,T).

sizeof(timeval) ->
erlang:system_info({wordsize, external}) + ?SIZEOF_U_INT;
Expand Down

0 comments on commit 6b3f0ae

Please sign in to comment.