Skip to content

Resolve clippy warnings and use correct types in bindings#47

Merged
slp merged 2 commits into
libkrun:mainfrom
mtjhrc:resolve-warnings
Oct 25, 2023
Merged

Resolve clippy warnings and use correct types in bindings#47
slp merged 2 commits into
libkrun:mainfrom
mtjhrc:resolve-warnings

Conversation

@mtjhrc
Copy link
Copy Markdown
Collaborator

@mtjhrc mtjhrc commented Oct 4, 2023

bindings were using i8 instead of c_char for C string pointers, but the types are defined as c_char in libkrun.

There were a lot of unnecessary casts from i8 to c_char according to clippy because on x86_64 they are the same type.
(The casts were necessary on ARM, because c_char is unsigned on ARM).

Signed-off-by: Matej Hrica <mhrica@redhat.com>
bindings were using i8 instead of c_char for C string pointers, but
the types are defined as c_char in libkrun.

There were a lot of unecessary casts from i8 to c_char according to clippy
because on x86_64 they are the same type.
(The casts were necessary on ARM, because c_char is unsigned on ARM).

Signed-off-by: Matej Hrica <mhrica@redhat.com>
@slp
Copy link
Copy Markdown
Collaborator

slp commented Oct 25, 2023

LGTM, thanks!

@slp slp merged commit 101a402 into libkrun:main Oct 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants