Skip to content

Commit

Permalink
fixed duplicate symbol error
Browse files Browse the repository at this point in the history
  • Loading branch information
mbhangui committed May 9, 2024
1 parent 283907f commit 731e694
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 35 deletions.
13 changes: 4 additions & 9 deletions ucspi-tcp-x/dotls.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
#define FATAL "dotls: fatal: "
#define HUGECAPATEXT 5000

#ifndef lint
const char sccsid[] = "$Id: dotls.c,v 1.24 2023-08-20 15:16:12+05:30 Cprogrammer Exp mbhangui $";
#endif

int do_data();
int do_retr();
int smtp_ehlo(char *, char *, int);
Expand Down Expand Up @@ -1070,14 +1066,13 @@ main(int argc, char **argv)
_exit(0);
}

#ifndef lint
void
getversion_sslclient_c()
getversion_dotls_c()
{
if (write(1, sccsid, 0) == -1)
;
const char *x = "$Id: dotls.c,v 1.24 2023-08-20 15:16:12+05:30 Cprogrammer Exp mbhangui $";

x++;
}
#endif
#else
#warning "not compiled with -DTLS"
#include "substdio.h"
Expand Down
9 changes: 3 additions & 6 deletions ucspi-tcp-x/rblsmtpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@

typedef const char c_char;

#ifndef lint
const char sccsid[] = "$Id: rblsmtpd.c,v 1.24 2021-08-30 12:47:59+05:30 Cprogrammer Exp mbhangui $";
#endif

no_return void
nomem(void)
{
Expand Down Expand Up @@ -679,6 +675,7 @@ main(int argc, char **argv, char **envp)
void
getversion_rblsmtpd_c()
{
if (write(1, sccsid, 0) == -1)
;
const char *x = "$Id: rblsmtpd.c,v 1.24 2021-08-30 12:47:59+05:30 Cprogrammer Exp mbhangui $";

x++;
}
11 changes: 3 additions & 8 deletions ucspi-tcp-x/tcpclient.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@

#define FATAL "tcpclient: fatal: "

#ifndef lint
const char sccsid[] = "$Id: tcpclient.c,v 1.33 2023-08-20 15:17:12+05:30 Cprogrammer Exp mbhangui $";
#endif

extern int socket_tcpnodelay(int);

no_return void
Expand Down Expand Up @@ -824,14 +820,13 @@ main(int argc, char **argv)
return (0);
}

#ifndef lint
void
getversion_tcpclient_c()
{
if (write(1, sccsid, 0) == -1)
;
const char *x = "$Id: tcpclient.c,v 1.33 2023-08-20 15:17:12+05:30 Cprogrammer Exp mbhangui $";

x++;
}
#endif

/*
* $Log: tcpclient.c,v $
Expand Down
9 changes: 3 additions & 6 deletions ucspi-tcp-x/tcpserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,6 @@
#include "control.h"
#include "auto_home.h"

#ifndef lint
const char sccsid[] = "$Id: tcpserver.c,v 1.92 2023-11-26 18:28:05+05:30 Cprogrammer Exp mbhangui $";
#endif

typedef const char c_char;
#ifdef IPV6
static int forcev6;
Expand Down Expand Up @@ -2012,8 +2008,9 @@ main(int argc, char **argv, char **envp)
void
getversion_tcpserver_c()
{
if (write(1, sccsid, 0) == -1)
;
const char *x = "$Id: tcpserver.c,v 1.92 2023-11-26 18:28:05+05:30 Cprogrammer Exp mbhangui $";

x++;
}

/*
Expand Down
8 changes: 2 additions & 6 deletions ucspi-tcp-x/tcpserver_plugin.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
*
*/

#ifndef lint
const char sccsid[] = "$Id: tcpserver_plugin.c,v 1.16 2021-07-03 14:05:14+05:30 Cprogrammer Exp mbhangui $";
#endif

#define FATAL "tcpserver: fatal: "

#ifdef LOAD_SHARED_OBJECTS
Expand Down Expand Up @@ -204,6 +200,6 @@ tcpserver_plugin(char **envp)
void
getversion_tcpserver_plugin_c()
{
if (write(1, sccsid, 0) == -1)
;
const char *x = "$Id: tcpserver_plugin.c,v 1.16 2021-07-03 14:05:14+05:30 Cprogrammer Exp mbhangui $";
x++;
}

0 comments on commit 731e694

Please sign in to comment.