Skip to content

Commit

Permalink
use int instead of long for ioctl. fixes #21
Browse files Browse the repository at this point in the history
  • Loading branch information
trapexit committed Jul 22, 2014
1 parent 2295714 commit 45cec2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ioctl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
static
int
_ioctl(const int fd,
const long cmd,
const int cmd,
void *arg,
const unsigned int flags,
void *data)
Expand Down Expand Up @@ -92,7 +92,7 @@ namespace mergerfs
return -EINVAL;

return _ioctl(fileinfo->fd,
(long)cmd,
cmd,
arg,
flags,
data);
Expand Down

0 comments on commit 45cec2d

Please sign in to comment.