DragonFly mail agent (round two)

Xin LI delphij at delphij.net
Sat Feb 2 18:23:45 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

H, Matthias,

(Your mail server seems to have rejected my e-mail...)

Here is a patch that cleans it up.  It will be possible to compile
without warnings on FreeBSD with the patch, but I think it is also
useful for DragonFly as well.

Cheers,
- --
Xin LI <delphij at delphij.net>	http://www.delphij.net/
FreeBSD - The Power to Serve!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHpSTYi+vbBBjt66ARAoHnAKCSN2PoQ8AGnAlcTuN4hYZ2BqYzRwCfcIep
wzPgQAzjhZRr8c+j8CxDD2M=
=/o3s
-----END PGP SIGNATURE-----
diff -r c4b7578b7082 aliases_parse.y
--- a/aliases_parse.y	Fri Feb 01 11:16:53 2008 -0800
+++ b/aliases_parse.y	Fri Feb 01 11:29:49 2008 -0800
@@ -5,7 +5,10 @@
 
 extern int yylineno;
 
-void
+int yylex(void);
+int yywrap(void);
+
+static void
 yyerror(const char *msg)
 {
 	warnx("aliases line %d: %s", yylineno, msg);
diff -r c4b7578b7082 aliases_scan.l
--- a/aliases_scan.l	Fri Feb 01 11:16:53 2008 -0800
+++ b/aliases_scan.l	Fri Feb 01 11:29:49 2008 -0800
@@ -1,8 +1,12 @@
 %{
+#include <string.h>
 #include "aliases_parse.h"
+
+int yylex(void);
 %}
 
 %option yylineno
+%option nounput
 
 %%
 
diff -r c4b7578b7082 dma.h
--- a/dma.h	Fri Feb 01 11:16:53 2008 -0800
+++ b/dma.h	Fri Feb 01 11:29:49 2008 -0800
@@ -42,6 +42,7 @@
 #endif /* HAVE_CRYPTO */
 
 #include <sys/queue.h>
+#include <stdint.h>
 #include <stdio.h>
 
 
diff -r c4b7578b7082 net.c
--- a/net.c	Fri Feb 01 11:16:53 2008 -0800
+++ b/net.c	Fri Feb 01 11:29:49 2008 -0800
@@ -59,7 +59,7 @@ static jmp_buf timeout_alarm;
 static jmp_buf timeout_alarm;
 
 static void
-sig_alarm(int signo)
+sig_alarm(int signo __unused)
 {
 	longjmp(timeout_alarm, 1);
 }
@@ -193,7 +193,7 @@ open_connection(struct qitem *it, const 
 #endif
 	int fd, error = 0, port;
 
-	if (config->port != NULL)
+	if (config->port != 0)
 		port = config->port;
 	else
 		port = SMTP_PORT;




More information about the Submit mailing list