Skip to content

Commit

Permalink
fix discarded-qualifier compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed May 11, 2024
1 parent e80fd1c commit b823c9b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions indimail-mta-x/delivery_rate.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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;
Expand Down
7 changes: 4 additions & 3 deletions indimail-mta-x/qsutil.c
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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++;
}

0 comments on commit b823c9b

Please sign in to comment.