/* \summary: Zephyr printer */
#ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
#endif
-#include <netdissect-stdinc.h>
+#include "netdissect-stdinc.h"
#include <stdio.h>
#include <string.h>
void
zephyr_print(netdissect_options *ndo, const u_char *cp, int length)
{
- struct z_packet z;
+ struct z_packet z = {
+ NULL, /* version */
+ 0, /* numfields */
+ 0, /* kind */
+ NULL, /* uid */
+ 0, /* port */
+ 0, /* auth */
+ 0, /* authlen */
+ NULL, /* authdata */
+ NULL, /* class */
+ NULL, /* inst */
+ NULL, /* opcode */
+ NULL, /* sender */
+ NULL, /* recipient */
+ NULL, /* format */
+ 0, /* cksum */
+ 0, /* multi */
+ NULL /* multi_uid */
+ };
const char *parse = (const char *) cp;
int parselen = length;
const char *s;
/* squelch compiler warnings */
- z.kind = 0;
- z.class = 0;
- z.inst = 0;
- z.opcode = 0;
- z.sender = 0;
- z.recipient = 0;
-
#define PARSE_STRING \
s = parse_field(ndo, &parse, &parselen, &truncated); \
if (truncated) goto trunc; \