]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
mtr v0.58 v0.58
authorRoger Wolff <r.e.wolff@bitwizard.nl>
Wed, 7 Apr 2004 00:00:00 +0000 (00:00 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 3 Feb 2013 20:45:37 +0000 (20:45 +0000)
 - I don't remember. Fogot to update this. :-( Check the patch.

source: ftp://ftp.bitwizard.nl/mtr/mtr-0.58.tar.gz

configure.in
dns.c
dns.h

index 9cd9963676e5f4c9b050ab509f8cbc31311b4042..9a8fd087a92147924e93dcec6a3278c322cf0201 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.57)
+AM_INIT_AUTOMAKE(mtr, 0.58)
 
 
 AC_SUBST(GTK_OBJ)
diff --git a/dns.c b/dns.c
index ac7a42889624178e7724ec00a2e716a9887c7ca8..fabab32724d5aa1879d9ae47153bf0076fc1ad81 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -44,6 +44,8 @@
 #include <errno.h>
 #include <time.h>
 
+#include "dns.h"
+
 #ifdef NO_STRERROR
 extern int sys_nerr;
 extern char *sys_errlist[];
@@ -53,9 +55,6 @@ extern char *sys_errlist[];
 /*  Hmm, it seems Irix requires this  */
 extern int errno;
 
-/* Defined in mtr.c */
-extern int dns;
-
 /* Defines */
 
 #undef Debug
@@ -75,14 +74,6 @@ extern int dns;
 
 #define nonull(s) (s) ? s : nullstring
 
-/* Typedefs */
-
-typedef unsigned char byte;
-typedef unsigned short word;
-typedef unsigned long dword;
-
-typedef unsigned int ip_t;
-
 /* Structures */
 
 struct resolve {
diff --git a/dns.h b/dns.h
index 63228402dcdc3952eb6c5a9637929ef6f4de8321..8daccb7e4c0fab2eab794c519741bae440e5b09b 100644 (file)
--- a/dns.h
+++ b/dns.h
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
+/* Typedefs */
+
+typedef unsigned char byte;
+typedef unsigned short word;
+typedef unsigned long dword;
+
+typedef unsigned int ip_t;
+
+
+
 /*  Prototypes for dns.c  */
 
 void dns_open();
 int dns_waitfd();
 void dns_ack();
 void dns_events(double *sinterval);
-char *dns_lookup(int address);
-char *dns_lookup2(int address);
+char *dns_lookup(ip_t address);
+char *dns_lookup2(ip_t address);
 int dns_forward(char *name);
-char *strlongip (int address);
+char *strlongip(ip_t ip);
+
+extern int dns;