aboutsummaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
Diffstat (limited to 'patches')
-rw-r--r--patches/deprecated.diff8
-rw-r--r--patches/remove-uint.diff6
2 files changed, 7 insertions, 7 deletions
diff --git a/patches/deprecated.diff b/patches/deprecated.diff
index dff4b55..a7d2359 100644
--- a/patches/deprecated.diff
+++ b/patches/deprecated.diff
@@ -6,10 +6,10 @@ Index: nitrokey-sys-rs/src/ffi.rs
===================================================================
--- nitrokey-sys-rs.orig/src/ffi.rs
+++ nitrokey-sys-rs/src/ffi.rs
-@@ -763,6 +763,7 @@ extern "C" {
- /// deprecated in favor of NK_get_status_as_string.
- /// @return string representation of the status or an empty string
- /// if the command failed
+@@ -762,6 +762,7 @@ extern "C" {
+ #[doc = " deprecated in favor of NK_get_status_as_string."]
+ #[doc = " @return string representation of the status or an empty string"]
+ #[doc = " if the command failed"]
+ #[deprecated(since = "3.5.0", note="use `NK_get_status_as_string` instead")]
pub fn NK_status() -> *mut ::std::os::raw::c_char;
}
diff --git a/patches/remove-uint.diff b/patches/remove-uint.diff
index 2db1d95..e4c24ba 100644
--- a/patches/remove-uint.diff
+++ b/patches/remove-uint.diff
@@ -10,12 +10,12 @@ Index: nitrokey-sys-rs/src/ffi.rs
--- nitrokey-sys-rs.orig/src/ffi.rs
+++ nitrokey-sys-rs/src/ffi.rs
@@ -1,9 +1,5 @@
- /* automatically generated by rust-bindgen */
+ /* automatically generated by rust-bindgen 0.55.1 */
-pub type __uint8_t = ::std::os::raw::c_uchar;
-pub type __uint16_t = ::std::os::raw::c_ushort;
-pub type __uint32_t = ::std::os::raw::c_uint;
-pub type __uint64_t = ::std::os::raw::c_ulong;
extern "C" {
- #[link_name = "\u{1}NK_PWS_SLOT_COUNT"]
- pub static mut NK_PWS_SLOT_COUNT: u8;
+ pub static NK_PWS_SLOT_COUNT: u8;
+ }