Skip to content

Commit d75f4f4

Browse files
authored
Merge pull request #44 from RandomInsano/upgrade_nix
Upgrade nix to 0.11
2 parents e2dd1bf + 52ab546 commit d75f4f4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ https://www.kernel.org/doc/Documentation/i2c/dev-interface
1818
libc = "0.2"
1919
bitflags = "1"
2020
byteorder = "1"
21-
nix = "0.10"
21+
nix = "0.11"
2222

2323
[dev-dependencies]
2424
docopt = "0.8"

src/ffi.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,8 @@ mod ioctl {
175175
use super::{I2C_SLAVE, I2C_SMBUS};
176176
pub use super::i2c_smbus_ioctl_data;
177177

178-
ioctl!(bad write_int set_i2c_slave_address with I2C_SLAVE);
179-
ioctl!(bad write_ptr i2c_smbus with I2C_SMBUS; i2c_smbus_ioctl_data);
178+
ioctl_write_int_bad!(set_i2c_slave_address, I2C_SLAVE);
179+
ioctl_write_ptr_bad!(i2c_smbus, I2C_SMBUS, i2c_smbus_ioctl_data);
180180
}
181181

182182

0 commit comments

Comments
 (0)