/*
* Decode and print Zephyr packets.
*
- * http://web.mit.edu/zephyr/doc/protocol
+ * https://web.mit.edu/zephyr/doc/protocol
*
* All rights reserved.
#include <string.h>
#include <stdlib.h>
+#include "netdissect-ctype.h"
+
#include "netdissect.h"
struct z_packet {
{
if (!*recipient)
recipient = "*";
- nd_snprintf(z_buf, sizeof(z_buf), "<%s,%s,%s>", class, inst, recipient);
+ snprintf(z_buf, sizeof(z_buf), "<%s,%s,%s>", class, inst, recipient);
z_buf[sizeof(z_buf)-1] = '\0';
return z_buf;
}
zb_string = z_buf;
while (*zb_string) {
- *zb_string = ND_TOLOWER((unsigned char)(*zb_string));
+ *zb_string = ND_ASCII_TOLOWER(*zb_string);
zb_string++;
}