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

Fix case sensitive linting #1079

Merged
merged 2 commits into from
Apr 12, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions nasl/lint.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ list_cmp1 (gconstpointer lelem, gconstpointer data)
/**
* @brief Check if an undefined called function is needed or not.
* This is the case in which the function is called from a
* neested and defined function but never called.
* nested and defined function but never called.
* @return 1 if the function is needed, 0 otherwise.
*/
static gint
Expand Down Expand Up @@ -161,10 +161,9 @@ reverse_search (GSList **def_func_tree, GSList *finfo)
static gint
list_cmp (gconstpointer lelem, gconstpointer data)
{
if (!lelem || !data)
return -1;

return (strcasecmp (lelem, data));
if (data)
return (g_strcmp0 (lelem, data));
return -1;
}

/**
Expand Down