aboutsummaryrefslogtreecommitdiffstats
path: root/packet-trmac.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-03-01 18:28:12 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-03-01 18:28:12 +0000
commit2744866326f422d4293f5ecf7ac2c6de8bee0237 (patch)
tree17dd58e3e242ddbaf6bdc514bf04a66d58cbede5 /packet-trmac.c
parent8eecc6e4880dae3259bb9e52a44274c33ad7a548 (diff)
Small fixes for alignment, and #include for gtk+-1.1.x/glib-1.1.x
svn path=/trunk/; revision=197
Diffstat (limited to 'packet-trmac.c')
-rw-r--r--packet-trmac.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-trmac.c b/packet-trmac.c
index 7b95141444..549bf9cac9 100644
--- a/packet-trmac.c
+++ b/packet-trmac.c
@@ -2,7 +2,7 @@
* Routines for Token-Ring Media Access Control
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
- * $Id: packet-trmac.c,v 1.9 1999/01/12 17:44:52 gram Exp $
+ * $Id: packet-trmac.c,v 1.10 1999/03/01 18:28:11 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
@@ -264,7 +264,7 @@ dissect_trmac(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {
"Ring Error Monitor" };
char *mv_text;
- mv_length = ntohs(*((guint16*)&pd[offset]));
+ mv_length = pntohs(&pd[offset]);
if (tree) {
ti = add_item_to_tree(GTK_WIDGET(tree), offset, mv_length,
@@ -274,7 +274,7 @@ dissect_trmac(const u_char *pd, int offset, frame_data *fd, GtkTree *tree) {
}
/* Interpret the major vector */
- mv_text = match_strval(pd[offset+3], major_vectors);
+ mv_text = val_to_str(pd[offset+3], major_vectors, "Unknown Major Vector: %d\n");
/* Summary information */
if (check_col(fd, COL_PROTOCOL))