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 *);