Skip to content

Commit

Permalink
Merge pull request #799 from mattmundell/missing-const
Browse files Browse the repository at this point in the history
Add: missing const
  • Loading branch information
mattmundell authored Oct 17, 2023
2 parents 19af05f + d6d7ef4 commit 450a658
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion base/nvti.c
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ typedef struct nvtpref
* released using @ref nvtpref_free .
*/
nvtpref_t *
nvtpref_new (int id, gchar *name, gchar *type, gchar *dflt)
nvtpref_new (int id, const gchar *name, const gchar *type, const gchar *dflt)
{
nvtpref_t *np = g_malloc0 (sizeof (nvtpref_t));

Expand Down
2 changes: 1 addition & 1 deletion base/nvti.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
typedef struct nvtpref nvtpref_t;

nvtpref_t *
nvtpref_new (int, gchar *, gchar *, gchar *);
nvtpref_new (int, const gchar *, const gchar *, const gchar *);

void
nvtpref_free (nvtpref_t *);
Expand Down

0 comments on commit 450a658

Please sign in to comment.