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

Make solution and solution_type explicit for nvti #255

Merged
merged 3 commits into from
Aug 11, 2019

Conversation

janowagner
Copy link
Member

@janowagner janowagner commented Aug 7, 2019

This means to add explicit methods to set and get solution and solution_type.

@janowagner janowagner added the work in progress This pull request should not be merged yet, more commits are expected label Aug 7, 2019
This method adds a single tag to the tags list
except it is a known tag where it is store into
the explicit structure.
It turned out to be not necessary to have this function.
@janowagner janowagner removed the work in progress This pull request should not be merged yet, more commits are expected label Aug 11, 2019
gchar *
nvti_solution (const nvti_t *n)
{
return (n ? n->solution : NULL);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: you're the only one using parens with "return". Everywhere else uses "return 0;" style.

@mattmundell mattmundell merged commit 901859c into greenbone:master Aug 11, 2019
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