Skip to content

Drop unused stdio.h include#13

Closed
TravMurav wants to merge 2 commits into
clibs:masterfrom
TravMurav:no-stdio
Closed

Drop unused stdio.h include#13
TravMurav wants to merge 2 commits into
clibs:masterfrom
TravMurav:no-stdio

Conversation

@TravMurav

Copy link
Copy Markdown
Contributor

I've needed a SHA1 implementation in a freestanding project and this library fits nicely. However the implementation includes the stdio.h header I don't have. It doesn't seem like the hash library actually needs stdio for anything (and why would it...)

For now I had to create an empty header file but I think it makes more sense to drop the include.

This PR just drops the header include from sha1.c

The sha1.c file includes stdio.h without seemingly using it for anyhing.
It doesn't make sense for a hash library to use stdio and having that
header included makes it harder to use the library in freestanding
environment.

Drop the include to make it easier to use the library in freestanding
projects.
@stephenmathieson

Copy link
Copy Markdown
Member

Re-created as #15 to get CI running.

@TravMurav TravMurav deleted the no-stdio branch July 17, 2025 04:34
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.

3 participants