summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-09-10 15:15:14 +0000
committergeniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2006-09-10 15:15:14 +0000
commitcd1d0952902897f91fee6d37084ce451da6d0790 (patch)
tree806cac60f06dce09cd31c3dac1792f6852755baf /src
parent9993ee6ae553dd4628219d236c5075f562e1ace3 (diff)
BUILD : 1.7.15 (1145) BUGS : 579 NOTES : Fixed make strict issues with src/tools
git-svn-id: svn://svn.anope.org/anope/trunk@1145 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@868 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bin/am4
-rw-r--r--src/tools/Makefile2
-rw-r--r--src/tools/anopesmtp.c40
-rw-r--r--src/tools/db-merger.c10
-rw-r--r--src/tools/epona2anope.c8
-rw-r--r--src/tools/smtp.h1
6 files changed, 41 insertions, 24 deletions
diff --git a/src/bin/am b/src/bin/am
index 91ad8dd26..1a590c653 100755
--- a/src/bin/am
+++ b/src/bin/am
@@ -23,10 +23,10 @@ my $fhint="version.log";
# Default values, change or use environment variables instead.
my $copy="anope";
-my $svnuser="";
+my $svnuser="geniusdex";
my $svnpath="/usr/bin";
my $svnroot="svn://zero.org/repos/$copy";
-my $editor="/usr/bin/vi";
+my $editor="/usr/bin/mcedit";
# Environment variables SVNBINDIR and SVNROOT override the above
# hardcoded values.
diff --git a/src/tools/Makefile b/src/tools/Makefile
index f64c6fa65..c0aa9fb85 100644
--- a/src/tools/Makefile
+++ b/src/tools/Makefile
@@ -1,5 +1,5 @@
-OBJS = $(SRCS:.c=.o)
SRCS = anopesmtp.c db-merger.c epona2anope.c
+OBJS = $(SRCS:.c=.o)
INCLUDES = ../../include/services.h
diff --git a/src/tools/anopesmtp.c b/src/tools/anopesmtp.c
index 59231b4ef..3810b29de 100644
--- a/src/tools/anopesmtp.c
+++ b/src/tools/anopesmtp.c
@@ -88,23 +88,6 @@ static void remove_log(void)
/*************************************************************************/
-static void checkday(void)
-{
- time_t t;
- struct tm tm;
-
- time(&t);
- tm = *localtime(&t);
-
- if (curday != tm.tm_yday) {
- close_log();
- remove_log();
- open_log();
- }
-}
-
-/*************************************************************************/
-
/* Open the log file. Return -1 if the log file could not be opened, else
* return 0. */
@@ -126,6 +109,23 @@ int open_log(void)
/*************************************************************************/
+static void checkday(void)
+{
+ time_t t;
+ struct tm tm;
+
+ time(&t);
+ tm = *localtime(&t);
+
+ if (curday != tm.tm_yday) {
+ close_log();
+ remove_log();
+ open_log();
+ }
+}
+
+/*************************************************************************/
+
/* Log stuff to the log file with a datestamp. Note that errno is
* preserved by this routine and log_perror().
*/
@@ -524,8 +524,11 @@ void mail_cleanup()
int main(int argc, char *argv[])
{
char buf[8192];
+/* These are somehow unused - why are they here? -GD
+
struct smtp_body_line *b;
struct smtp_header *h;
+*/
int headers_done = 0;
/* Win32 stuff */
#ifdef _WIN32
@@ -546,7 +549,8 @@ int main(int argc, char *argv[])
if (!server) {
alog("No Server");
- return;
+ /* Bad, bad, bad. This was a eturn from main with no value! -GD */
+ return 0;
} else {
alog("SMTP: server %s port %d",server,port);
}
diff --git a/src/tools/db-merger.c b/src/tools/db-merger.c
index 9de23eaca..5af13f4c0 100644
--- a/src/tools/db-merger.c
+++ b/src/tools/db-merger.c
@@ -715,7 +715,9 @@ int main(int argc, char *argv[])
int n_levels;
char *s;
int n_ttb;
+ /* Unused variable - why? -GD
int J;
+ */
last = &chanlists[i];
prev = NULL;
@@ -896,14 +898,16 @@ int main(int argc, char *argv[])
int c;
for (i = 0; i < 256; i++) {
- char input[1024];
int16 tmp16;
int32 tmp32;
int n_levels;
char *s;
- NickAlias *na;
int n_ttb;
+ /* Unused variables - why? -GD
+ char input[1024];
+ NickAlias *na;
int J;
+ */
while ((c = getc_db(f)) == 1) {
ChannelInfo *ci = NULL, *ciptr = NULL;
@@ -1257,7 +1261,9 @@ int main(int argc, char *argv[])
if ((f = open_db_write("ChanServ", CHAN_DB_NEW, 16))) {
ChannelInfo *ci;
Memo *memos;
+ /* Unused variable - why? -GD
static time_t lastwarn = 0;
+ */
for (i = 0; i < 256; i++) {
int16 tmp16;
diff --git a/src/tools/epona2anope.c b/src/tools/epona2anope.c
index a87bd0ae0..0cc45ee9d 100644
--- a/src/tools/epona2anope.c
+++ b/src/tools/epona2anope.c
@@ -243,8 +243,10 @@ int main(int argc, char *argv[])
{
dbFILE *f;
int i;
- NickCore *nc, *ncnext;
long countr = 0, countw = 0;
+ /* Unused variables - why? -GD
+ NickCore *nc, *ncnext;
+ */
printf("\n"C_LBLUE"Epona to Anope DB converter by Certus"C_NONE"\n\n");
@@ -261,7 +263,9 @@ int main(int argc, char *argv[])
int n_levels;
char *s;
int n_ttb;
+ /* Unused variable - why? -GD
int J;
+ */
last = &chanlists[i];
prev = NULL;
@@ -442,7 +446,9 @@ int main(int argc, char *argv[])
if ((f = open_db_write("ChanServ", CHAN_DB_ANOPE, 16))) {
ChannelInfo *ci;
Memo *memos;
+ /* Unused variable - why? -GD
static time_t lastwarn = 0;
+ */
for (i = 0; i < 256; i++) {
int16 tmp16;
diff --git a/src/tools/smtp.h b/src/tools/smtp.h
index b04fa98d8..6366f6483 100644
--- a/src/tools/smtp.h
+++ b/src/tools/smtp.h
@@ -47,6 +47,7 @@
#include <netdb.h>
#include <netinet/in.h>
#include <sys/socket.h>
+#include <arpa/inet.h>
#else
#include <winsock.h>
#include <windows.h>