Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build and code cleanups #27

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

guillemj
Copy link
Contributor

Various small code fixes and cleanups.

Check whether the system has LFS, and if so enable it. This should be
ABI safe for the shared library as it does not expose any problematic type.

Signed-off-by: Guillem Jover <[email protected]>
Having a test that never returns is not very nice, as it makes trying to
run it during build or on a CI system hang.

Signed-off-by: Guillem Jover <[email protected]>
Follow the same pattern in sysfs_read_attribute() as the rest of the
code, and protect against wrong usage of the freed pointer.

Signed-off-by: Guillem Jover <[email protected]>
The variable attr is only used in the other if branch, to check whether
it is NULL.

Signed-off-by: Guillem Jover <[email protected]>
The return value from write is never used nor checked, as we close() and
immediately return.

Signed-off-by: Guillem Jover <[email protected]>
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.

1 participant