aboutsummaryrefslogtreecommitdiffstats
path: root/packet-dns.c
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2002-08-30 15:17:12 +0000
committerJörg Mayer <jmayer@loplof.de>2002-08-30 15:17:12 +0000
commit47d7946c2e86f3ddbcfd29d6325abebb48fdca1e (patch)
treecbbee272b55ee081d72cd35b33ad8db84e2f357d /packet-dns.c
parent2bc260025b99d804daa81634c7f2368043f00b74 (diff)
Print RR number as unsigned.
svn path=/trunk/; revision=6145
Diffstat (limited to 'packet-dns.c')
-rw-r--r--packet-dns.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/packet-dns.c b/packet-dns.c
index 806ae7197e..ca7ed8fd1e 100644
--- a/packet-dns.c
+++ b/packet-dns.c
@@ -1,7 +1,7 @@
/* packet-dns.c
* Routines for DNS packet disassembly
*
- * $Id: packet-dns.c,v 1.93 2002/08/30 02:11:16 sharpe Exp $
+ * $Id: packet-dns.c,v 1.94 2002/08/30 15:17:12 jmayer Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -406,7 +406,7 @@ dns_long_type_name (guint type)
NULL,
"EDNS0 option" /* RFC 2671 */
};
- static char unkbuf[7+1+2+1+4+1+1+10+1+1]; /* "Unknown RR type (%d)" */
+ static char unkbuf[7+1+2+1+4+1+1+10+1+1]; /* "Unknown RR type (%u)" */
if (type < sizeof(type_names)/sizeof(type_names[0]))
return type_names[type] ? type_names[type] : "unknown";
@@ -447,7 +447,7 @@ dns_long_type_name (guint type)
return "Request for all records";
}
- sprintf(unkbuf, "Unknown RR type (%d)", type);
+ sprintf(unkbuf, "Unknown RR type (%u)", type);
return unkbuf;
}
@@ -698,6 +698,7 @@ rfc1867_angle(tvbuff_t *tvb, int offset, const char *nsew)
guint32 angle;
char direction;
guint32 degrees, minutes, secs, tsecs;
+ /* "%u deg %u min %u.%03u sec %c" */
static char buf[10+1+3+1 + 2+1+3+1 + 2+1+3+1+3+1 + 1 + 1];
angle = tvb_get_ntohl(tvb, offset);