From b823c9beb908cda273c689e2059faae1b8224d65 Mon Sep 17 00:00:00 2001 From: Manvendra Bhangui Date: Sat, 11 May 2024 08:09:19 +0530 Subject: [PATCH] fix discarded-qualifier compiler warnings --- indimail-mta-x/delivery_rate.c | 7 ++++--- indimail-mta-x/qsutil.c | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/indimail-mta-x/delivery_rate.c b/indimail-mta-x/delivery_rate.c index fb73b1ae1..336970ed2 100644 --- a/indimail-mta-x/delivery_rate.c +++ b/indimail-mta-x/delivery_rate.c @@ -1,6 +1,6 @@ /* * $Log: delivery_rate.c,v $ - * Revision 1.10 2024-05-09 22:03:17+05:30 mbhangui + * Revision 1.10 2024-05-11 08:07:18+05:30 Cprogrammer * fix discarded-qualifier compiler warnings * * Revision 1.9 2023-01-15 12:20:12+05:30 Cprogrammer @@ -45,9 +45,10 @@ #include "control.h" #include "delivery_rate.h" +typedef const char c_char; static stralloc ratedefs = { 0 }; static stralloc ratelimit_file = { 0 }; -extern char *queuedesc; +extern c_char *queuedesc; /*- * returns @@ -210,7 +211,7 @@ delivery_rate(char *_domain, unsigned long id, datetime_sec *time_needed, void getversion_delivery_rate_c() { - const char *x = "$Id: delivery_rate.c,v 1.10 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $"; + const char *x = "$Id: delivery_rate.c,v 1.10 2024-05-11 08:07:18+05:30 Cprogrammer Exp mbhangui $"; x = sccsidgetdomainth; x = sccsidgetrateh; diff --git a/indimail-mta-x/qsutil.c b/indimail-mta-x/qsutil.c index 66782af3b..9b26dc1aa 100644 --- a/indimail-mta-x/qsutil.c +++ b/indimail-mta-x/qsutil.c @@ -1,6 +1,6 @@ /* * $Log: qsutil.c,v $ - * Revision 1.26 2024-05-09 22:03:17+05:30 mbhangui + * Revision 1.26 2024-05-11 08:08:12+05:30 Cprogrammer * fix discarded-qualifier compiler warnings * * Revision 1.25 2023-06-25 20:11:21+05:30 Cprogrammer @@ -95,9 +95,10 @@ static stralloc foo = { 0 }; +typedef const char c_char; static char errbuf[1024]; static struct substdio sserr = SUBSTDIO_FDBUF(write, 0, errbuf, sizeof(errbuf)); -extern char *queuedesc; /*- defined in qmail-send.c */ +extern c_char *queuedesc; /*- defined in qmail-send.c */ #ifdef LOGLOCK static stralloc lockfn = { 0 }; int loglock_fd = -1; @@ -330,7 +331,7 @@ logsafe(const char *s, const char *argv0) void getversion_qsutil_c() { - const char *x = "$Id: qsutil.c,v 1.26 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $"; + const char *x = "$Id: qsutil.c,v 1.26 2024-05-11 08:08:12+05:30 Cprogrammer Exp mbhangui $"; x++; }