aboutsummaryrefslogtreecommitdiff
path: root/patches/remove-uint.diff
diff options
context:
space:
mode:
authorRobin Krahl <me@robin-krahl.de>2020-09-20 04:46:26 +0200
committerRobin Krahl <robin.krahl@ireas.org>2020-09-20 11:46:45 +0200
commit483ec7256d6c4d01ba6c41513fdf8bbd7df6b4b3 (patch)
tree1731929765dc470e66ab714bc6ad79e2cd2521eb /patches/remove-uint.diff
parent90bcfc8cc905b09d99064fc17a745c8ae2288c62 (diff)
downloadnitrokey-sys-rs-483ec7256d6c4d01ba6c41513fdf8bbd7df6b4b3.tar.gz
nitrokey-sys-rs-483ec7256d6c4d01ba6c41513fdf8bbd7df6b4b3.tar.bz2
Re-generate bindings in src/ffi.rs
Older versions of bindgen rendered C++ doc comments as Rust doc comments using the /// syntax. Newer versions use the doc attribute instead. This patch re-generates the src/ffi.rs file with bindgen 0.55.1 so that it uses the new format. This makes it easier to perform changes in the future.
Diffstat (limited to 'patches/remove-uint.diff')
-rw-r--r--patches/remove-uint.diff6
1 files changed, 3 insertions, 3 deletions
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;
+ }