From 52ab54610429b4e6e3828e9720aef2419ee64eb2 Mon Sep 17 00:00:00 2001 From: Edwin Amsler Date: Sat, 29 Sep 2018 13:03:08 -0500 Subject: [PATCH] Upgrade nix to 0.11 --- Cargo.toml | 2 +- src/ffi.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 29ebc79f..9509070f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,7 +18,7 @@ https://www.kernel.org/doc/Documentation/i2c/dev-interface libc = "0.2" bitflags = "1" byteorder = "1" -nix = "0.10" +nix = "0.11" [dev-dependencies] docopt = "0.8" diff --git a/src/ffi.rs b/src/ffi.rs index c4c08f7e..f043d4d6 100644 --- a/src/ffi.rs +++ b/src/ffi.rs @@ -175,8 +175,8 @@ mod ioctl { use super::{I2C_SLAVE, I2C_SMBUS}; pub use super::i2c_smbus_ioctl_data; - ioctl!(bad write_int set_i2c_slave_address with I2C_SLAVE); - ioctl!(bad write_ptr i2c_smbus with I2C_SMBUS; i2c_smbus_ioctl_data); + ioctl_write_int_bad!(set_i2c_slave_address, I2C_SLAVE); + ioctl_write_ptr_bad!(i2c_smbus, I2C_SMBUS, i2c_smbus_ioctl_data); }