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

Pedantic suggestions #141

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

Conversation

DimitriPapadopoulos
Copy link
Contributor

Some suggestions from the checkpatch.pl script from the Linux kernel.

I have limited this merge request to the most relevant suggestions, trying not to modify the current code formatting.

From the C99 standard:
	An identifier list declares only the identifiers of the parameters of the function.
	An empty list in a function declarator that is part of a definition of that function
	specifies that the function has no parameters. The empty list in a function declarator
	that is not part of a definition of that function specifies that no information about
	the number or types of the parameters is supplied.

Because this is a function definition, not a simple delclaration, `void`
is not required. Yet, because the function has not declared beforehand,
I find it better to add `void`.
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.

None yet

1 participant