]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
mtr v0.39 v0.39
authorRoger Wolff <r.e.wolff@bitwizard.nl>
Wed, 9 Jun 1999 00:00:00 +0000 (00:00 +0000)
committerTravis Cross <tc@traviscross.com>
Sun, 3 Feb 2013 20:45:37 +0000 (20:45 +0000)
 - Forgot the parentheses around the previous fix... :-(

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

AUTHORS
configure.in
dns.c

diff --git a/AUTHORS b/AUTHORS
index 23623b4bd6db65e3d5ffd59c96aa45a18e5c23c7..f1daf1d745e5e95602c4b84a1537af7c53139ed3 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -18,6 +18,7 @@
         Aaron Scarisbrick, 
         Craig Milo Rogers (Rogers@ISI.EDU),
         Russell Nelson (rn-mtr@crynwr.com),
+        Davin Milun (milun@acm.org),
         Alexander V. Lukyanov (lav@yars.free.net), 
         Charles Levert (charles@comm.polymtl.ca), 
         Bertrand Leconte (B.Leconte@mail.dotcom.fr), 
index 820f85420e33fd401a49f23dc862ac2535cbc81f..d326fed13edb4bdae9620a21270d872aef41d592 100644 (file)
@@ -1,5 +1,5 @@
 AC_INIT(mtr.c)
-AM_INIT_AUTOMAKE(mtr, 0.38)
+AM_INIT_AUTOMAKE(mtr, 0.39)
 
 AC_SUBST(GTK_OBJ)
 AC_SUBST(CURSES_OBJ)
diff --git a/dns.c b/dns.c
index a99d8dff351c6fd96ddb0e22f1c9923712430e87..3945fed80786d51804cfa8081ddaecc4af8ae2ab 100644 (file)
--- a/dns.c
+++ b/dns.c
@@ -220,12 +220,12 @@ typedef struct {
 #define sucknetlong(x) (((long)*(x) << 24) | ((x)[1] << 16) | ((x)[2] << 8) | (((x)+= 4)[-1]))
 #else
 
-#define sucknetword(x)  ((word)  (((x)[0] <<  8) | ((x)[1] <<  0))),(x)+=2
-#define sucknetshort(x) ((short) (((x)[0] <<  8) | ((x)[1] <<  0))),(x)+=2
-#define sucknetdword(x) ((dword) (((x)[0] << 24) | ((x)[1] << 16) | \
-                                  ((x)[2] <<  8) | ((x)[3] <<  0))),(x)+=4
-#define sucknetlong(x)  ((long)  (((x)[0] << 24) | ((x)[1] << 16) | \
-                                  ((x)[2] <<  8) | ((x)[3] <<  0))),(x)+=4
+#define sucknetword(x)  ((x)+=2,((word)  (((x)[-2] <<  8) | ((x)[-1] <<  0))))
+#define sucknetshort(x) ((x)+=2,((short) (((x)[-2] <<  8) | ((x)[-1] <<  0))))
+#define sucknetdword(x) ((x)+=4,((dword) (((x)[-4] << 24) | ((x)[-3] << 16) | \
+                                          ((x)[-2] <<  8) | ((x)[-1] <<  0))))
+#define sucknetlong(x)  ((x)+=4,((long)  (((x)[-4] << 24) | ((x)[-3] << 16) | \
+                                          ((x)[-2] <<  8) | ((x)[-1] <<  0))))
 #endif
 
 enum {
@@ -751,7 +751,7 @@ void restell(char *s){
 void dorequest(char *s,int type,word id){
    packetheader *hp;
    int r,i;
-   int buf[(MaxPacketsize/4)+1];
+   int buf[(MaxPacketsize/sizeof (int))+1];
    r = res_mkquery(QUERY,s,C_IN,type,NULL,0,NULL,buf,MaxPacketsize);
    if (r == -1){
       restell("Resolver error: Query too large.");