Skip to content

Commit

Permalink
indimail-mta, ucspi-tcp: fix function prototypes
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed May 12, 2024
1 parent b823c9b commit 51ccc01
Show file tree
Hide file tree
Showing 48 changed files with 387 additions and 363 deletions.
10 changes: 5 additions & 5 deletions indimail-mta-x/auto-int.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* $Log: auto-int.c,v $
* Revision 1.8 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.7 2020-11-24 13:43:54+05:30 Cprogrammer
* removed exit.h
*
Expand All @@ -19,17 +22,14 @@ char buf1[256];
substdio ss1 = SUBSTDIO_FDBUF(write, 1, buf1, sizeof(buf1));

void
my_puts(s)
char *s;
my_puts(const char *s)
{
if (substdio_puts(&ss1, s) == -1)
_exit(111);
}

int
main(argc, argv)
int argc;
char **argv;
main(int argc, char **argv)
{
char *name;
char *value;
Expand Down
10 changes: 5 additions & 5 deletions indimail-mta-x/auto-int8.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* $Log: auto-int8.c,v $
* Revision 1.8 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.7 2020-11-24 13:43:51+05:30 Cprogrammer
* removed exit.h
*
Expand All @@ -19,17 +22,14 @@ char buf1[256];
substdio ss1 = SUBSTDIO_FDBUF(write, 1, buf1, sizeof(buf1));

void
my_puts(s)
char *s;
my_puts(const char *s)
{
if (substdio_puts(&ss1, s) == -1)
_exit(111);
}

int
main(argc, argv)
int argc;
char **argv;
main(int argc, char **argv)
{
char *name;
char *value;
Expand Down
6 changes: 4 additions & 2 deletions indimail-mta-x/auto-pidt.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* $Log: auto-pidt.c,v $
* Revision 1.4 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.3 2020-11-24 13:43:57+05:30 Cprogrammer
* removed exit.h
*
Expand All @@ -20,8 +23,7 @@ char buf1[256];
substdio ss1 = SUBSTDIO_FDBUF(write, 1, buf1, sizeof(buf1));

void
my_puts(s) /*- was named puts, but Solaris pwd.h includes stdio.h. dorks. */
char *s;
my_puts(const char *s) /*- was named puts, but Solaris pwd.h includes stdio.h. dorks. */
{
if (substdio_puts(&ss1, s) == -1)
_exit(111);
Expand Down
10 changes: 5 additions & 5 deletions indimail-mta-x/auto-str.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* $Log: auto-str.c,v $
* Revision 1.9 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.8 2020-11-24 13:44:02+05:30 Cprogrammer
* removed exit.h
*
Expand Down Expand Up @@ -36,17 +39,14 @@ is_legible(unsigned char ch)
}

void
my_puts(s)
char *s;
my_puts(const char *s)
{
if (substdio_puts(&ss1, s) == -1)
_exit(111);
}

int
main(argc, argv)
int argc;
char **argv;
main(int argc, char **argv)
{
char *name;
char *value;
Expand Down
9 changes: 5 additions & 4 deletions indimail-mta-x/bouncesaying.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* $Log: bouncesaying.c,v $
* Revision 1.9 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.8 2024-05-09 22:03:17+05:30 mbhangui
* fix discarded-qualifier compiler warnings
*
Expand All @@ -22,9 +25,7 @@
#define FATAL "bouncesaying: fatal: "

int
main(argc, argv)
int argc;
char **argv;
main(int argc, char **argv)
{
int pid;
int wstat;
Expand Down Expand Up @@ -65,7 +66,7 @@ main(argc, argv)
void
getversion_bouncesaying_c()
{
const char *x = "$Id: bouncesaying.c,v 1.8 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $";
const char *x = "$Id: bouncesaying.c,v 1.9 2024-05-12 00:20:03+05:30 mbhangui Exp mbhangui $";

x++;
}
32 changes: 10 additions & 22 deletions indimail-mta-x/columnt.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* $Log: columnt.c,v $
* Revision 1.8 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.7 2024-05-09 22:03:17+05:30 mbhangui
* fix discarded-qualifier compiler warnings
*
Expand Down Expand Up @@ -71,20 +74,14 @@ printline()
}

void
maxfield_check(fieldnum, buf, len)
int fieldnum;
char *buf;
int len;
maxfield_check(int fieldnum, char *buf, int len)
{
if (fieldnum > maxfield)
maxfield = fieldnum;
}

void
width_check(fieldnum, buf, len)
int fieldnum;
char *buf;
int len;
width_check(int fieldnum, char *buf, int len)
{
if (len > width[fieldnum])
width[fieldnum] = len;
Expand All @@ -95,18 +92,14 @@ width_init()
{
int i;

width = (int *) alloc((maxfield + 1) * sizeof(int));
if (!width)
if (!(width = (int *) alloc((maxfield + 1) * sizeof(int))))
nomem();
for (i = 0; i <= maxfield; ++i)
width[i] = 0;
}

void
printfield(fieldnum, buf, len)
int fieldnum;
char *buf;
int len;
printfield(int fieldnum, char *buf, int len)
{
int i;

Expand All @@ -124,14 +117,9 @@ printfield(fieldnum, buf, len)
}

void
split(dofield, doline)
void (*dofield) ();
void (*doline) ();
split(void (*dofield) (int, char *, int), void (*doline) (void))
{
int i;
int j;
int fieldpos;
int fieldnum;
int i, j, fieldpos, fieldnum;

for (j = i = 0; j < file.len; ++j)
if (file.s[j] == '\n')
Expand Down Expand Up @@ -178,7 +166,7 @@ main()
void
getversion_columnt_c()
{
const char *x = "$Id: columnt.c,v 1.7 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $";
const char *x = "$Id: columnt.c,v 1.8 2024-05-12 00:20:03+05:30 mbhangui Exp mbhangui $";

x++;
}
10 changes: 6 additions & 4 deletions indimail-mta-x/dns.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* $Id: dns.c,v 1.40 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $
* $Id: dns.c,v 1.41 2024-05-12 00:20:03+05:30 mbhangui Exp mbhangui $
* RCS log at bottom
*/
#include <netdb.h>
Expand Down Expand Up @@ -101,8 +101,7 @@ unsigned short pref;

static stralloc glue = { 0 };
static stralloc tmpsa = { 0 };

static int (*lookup) () = res_query;
static int (*lookup) (const char *, int, int, unsigned char *, int) = res_query;
#ifdef IPV6
static int iaafmt6(char *, ip6_addr *, const char *);
#endif
Expand Down Expand Up @@ -1067,13 +1066,16 @@ dns_tlsarr(tlsarralloc *ta, stralloc *sa)
void
getversion_dns_c()
{
const char *x = "$Id: dns.c,v 1.40 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $";
const char *x = "$Id: dns.c,v 1.41 2024-05-12 00:20:03+05:30 mbhangui Exp mbhangui $";

x++;
}

/*
* $Log: dns.c,v $
* Revision 1.41 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.40 2024-05-09 22:03:17+05:30 mbhangui
* fix discarded-qualifier compiler warnings
*
Expand Down
7 changes: 5 additions & 2 deletions indimail-mta-x/dns_text.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
/*
* $Log: dns_text.c,v $
* Revision 1.14 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.13 2024-05-09 22:03:17+05:30 mbhangui
* fix discarded-qualifier compiler warnings
*
Expand Down Expand Up @@ -70,7 +73,7 @@ static int responselen;
static unsigned char *responseend;
static unsigned char *responsepos;
static u_long saveresoptions;
static int (*lookup) () = res_query;
static int (*lookup) (const char *, int, int, unsigned char *, int) = res_query;
static int numanswers;
static char name[MAXDNAME];

Expand Down Expand Up @@ -232,7 +235,7 @@ dns_text(char *dn)
void
getversion_dns_text_c()
{
const char *x = "$Id: dns_text.c,v 1.13 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $";
const char *x = "$Id: dns_text.c,v 1.14 2024-05-12 00:20:03+05:30 mbhangui Exp mbhangui $";

x++;
}
Expand Down
2 changes: 2 additions & 0 deletions indimail-mta-x/doc/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Release @version@-@release@ Start 05/02/2024 End XX/XX/XXXX
07. svctool: removed log-error and mysql-native-password
- 09/05/2024
08. fix discarded-qualifier compiler warnings
- 12/05/2024
09. fix function prototypes

* Sun Mar 03 2024 12:20:15 +0000 Manvendra Bhangui <indimail-mta@indimail.org> 3.0.7-1.1%{?dist}
Release 3.0.7-1.1 Start 02/01/2024 End 03/02/2024
Expand Down
19 changes: 11 additions & 8 deletions indimail-mta-x/dossl.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* $Id: dossl.c,v 1.6 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $
* $Id: dossl.c,v 1.7 2024-05-12 00:20:03+05:30 mbhangui Exp mbhangui $
*/
#include "hastlsa.h"
#if defined(TLS) || defined(TLSA)
Expand Down Expand Up @@ -159,9 +159,9 @@ int
do_tls(SSL **ssl, int pkix, int smtps, int smtpfd, int *needtlsauth,
char **scert, const char *fqdn, const char *_host, int hostlen,
void(*tlsquit)(const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, stralloc *s),
void(*mem_err)(),
void(*ctrl_err)(),
void(*write_err)(),
void(*mem_err)(void),
void(*ctrl_err)(const char *, const char *),
void(*write_err)(void),
#ifdef HAVE_STDARG_H
void(*quit)(int code, int e, const char *p, ...),
#else
Expand Down Expand Up @@ -502,10 +502,10 @@ int
tlsa_vrfy_records(SSL *ssl, char *certDataField, int usage, int selector,
int match_type, const char *fqdn,
void(*tlsquit)(const char *s1, const char *s2, const char *s3, const char *s4, const char *s5, stralloc *s),
void(*mem_err)(),
void(*mem_err)(void),
stralloc *stext,
void(*out)(),
void(*flush)(),
void(*out)(const char *),
void(*flush)(void),
char **err_str, int verbose)
{
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
Expand Down Expand Up @@ -730,13 +730,16 @@ tlsa_vrfy_records(SSL *ssl, char *certDataField, int usage, int selector,
void
getversion_dossl_c()
{
const char *x = "$Id: dossl.c,v 1.6 2024-05-09 22:03:17+05:30 mbhangui Exp mbhangui $";
const char *x = "$Id: dossl.c,v 1.7 2024-05-12 00:20:03+05:30 mbhangui Exp mbhangui $";

x++;
}

/*
* $Log: dossl.c,v $
* Revision 1.7 2024-05-12 00:20:03+05:30 mbhangui
* fix function prototypes
*
* Revision 1.6 2024-05-09 22:03:17+05:30 mbhangui
* fix discarded-qualifier compiler warnings
*
Expand Down
Loading

0 comments on commit 51ccc01

Please sign in to comment.