From d6d7ef441d8e1903bc638548631ce9913ec5b956 Mon Sep 17 00:00:00 2001 From: Matt Mundell Date: Tue, 17 Oct 2023 13:30:22 +0200 Subject: [PATCH] Add: missing const --- base/nvti.c | 2 +- base/nvti.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/base/nvti.c b/base/nvti.c index 46ecd5b0..38d1bbbb 100644 --- a/base/nvti.c +++ b/base/nvti.c @@ -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)); diff --git a/base/nvti.h b/base/nvti.h index 1c0e8120..dbfbec9f 100644 --- a/base/nvti.h +++ b/base/nvti.h @@ -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 *);