commit 43a499c8190af14f04d313ef50d4fd78aa8f520b
parent acc98fd1c5302a3cf357bdf752d50e621a063b48
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Wed, 27 May 2026 17:51:21 +0200
-fix warnings in new gcc: missing const
Diffstat:
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/kyclogic/kyclogic_sanctions.c b/src/kyclogic/kyclogic_sanctions.c
@@ -187,7 +187,7 @@ process_buffer (struct TALER_KYCLOGIC_SanctionRater *sr)
{
const char *buf = sr->read_buf;
size_t buf_len;
- void *end;
+ const void *end;
end = memrchr (sr->read_buf,
'\n',
@@ -205,7 +205,7 @@ process_buffer (struct TALER_KYCLOGIC_SanctionRater *sr)
buf_len = end - sr->read_buf;
while (0 != buf_len)
{
- char *nl;
+ const char *nl;
double rating;
double confidence;
char best_match[1024];
diff --git a/src/templating/templating_api.c b/src/templating/templating_api.c
@@ -392,8 +392,8 @@ static enum GNUNET_GenericReturnValue
load_template (void *cls,
const char *filename)
{
- char *lang;
- char *end;
+ const char *lang;
+ const char *end;
int fd;
struct stat sb;
char *map;
diff --git a/src/util/secmod_cs.c b/src/util/secmod_cs.c
@@ -1806,7 +1806,7 @@ parse_key (struct Denomination *denom,
const char *filename,
const struct GNUNET_CRYPTO_CsPrivateKey *priv)
{
- char *anchor_s;
+ const char *anchor_s;
char dummy;
unsigned long long anchor_start_ll;
unsigned long long anchor_end_ll;
diff --git a/src/util/secmod_rsa.c b/src/util/secmod_rsa.c
@@ -1544,7 +1544,7 @@ parse_key (struct Denomination *denom,
size_t buf_size)
{
struct GNUNET_CRYPTO_RsaPrivateKey *priv;
- char *anchor_s;
+ const char *anchor_s;
char dummy;
unsigned long long anchor_start_ll;
unsigned long long anchor_end_ll;