* PURPOSE.
*/
+#ifndef lint
+static const char rcsid[] =
+ "@(#) $Header: /tcpdump/master/tcpdump/print-zephyr.c,v 1.5 2002-08-01 08:53:35 risso Exp $";
+#endif
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <tcpdump-stdinc.h>
+
#include <stdio.h>
-#include <ctype.h>
#include <string.h>
#include <stdlib.h>
-#include <sys/types.h>
#include "interface.h"
/* Other fields follow here.. */
};
-enum {
+enum z_packet_type {
Z_PACKET_UNSAFE = 0,
Z_PACKET_UNACKED,
Z_PACKET_ACKED,
Z_PACKET_SERVNAK,
Z_PACKET_CLIENTACK,
Z_PACKET_STAT
-} z_packet_type;
+};
static struct tok z_types[] = {
{ Z_PACKET_UNSAFE, "unsafe" },
string = z_buf;
while (*string) {
- *string = tolower(*string);
+ *string = tolower((unsigned char)(*string));
string++;
}