summaryrefslogtreecommitdiff
path: root/sysutils/hcidump/patches/patch-al
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/hcidump/patches/patch-al')
-rw-r--r--sysutils/hcidump/patches/patch-al50
1 files changed, 50 insertions, 0 deletions
diff --git a/sysutils/hcidump/patches/patch-al b/sysutils/hcidump/patches/patch-al
new file mode 100644
index 00000000000..c079fad99d7
--- /dev/null
+++ b/sysutils/hcidump/patches/patch-al
@@ -0,0 +1,50 @@
+$NetBSD: patch-al,v 1.1.1.1 2006/07/25 16:28:48 salo Exp $
+
+prototyping to get past compiler warnings
+
+--- parser/rfcomm.c.orig 2003-09-13 01:38:11.000000000 +0200
++++ parser/rfcomm.c
+@@ -30,6 +30,7 @@
+ */
+
+ #include <sys/types.h>
++#include <sys/time.h>
+ #include <sys/endian.h>
+ #include <stdio.h>
+
+@@ -44,6 +45,8 @@ static char *cr_str[] = {
+ #define CR_STR(mcc_head) cr_str[mcc_head->type.cr]
+ #define GET_DLCI(addr) ((addr.server_chn << 1) | (addr.d & 1))
+
++void print_rfcomm_hdr(long_frame_head *, uint8_t *, int);
++
+ void print_rfcomm_hdr(long_frame_head* head, uint8_t *ptr, int len)
+ {
+ address_field addr = head->addr;
+@@ -59,6 +62,8 @@ void print_rfcomm_hdr(long_frame_head* h
+ printf("cr %d dlci %d pf %d ilen %d fcs 0x%x ", addr.cr, dlci, pf, ilen, fcs);
+ }
+
++void print_mcc(mcc_long_frame_head *);
++
+ void print_mcc(mcc_long_frame_head* mcc_head)
+ {
+ printf("mcc_len %d\n", mcc_head->length.bits.len);
+@@ -145,7 +150,7 @@ static void mcc_rpn(int level, uint8_t *
+ rpn->rpn_val.rtr_input, rpn->rpn_val.rtr_output,
+ rpn->rpn_val.rtc_input, rpn->rpn_val.rtc_output,
+ rpn->rpn_val.xon, rpn->rpn_val.xoff,
+- le16toh(*(uint16_t *)&(rpn->rpn_val.pm)));
++ le16toh(*((uint16_t *)(void *)&rpn->rpn_val.pm)));
+ }
+
+ static void mcc_rls(int level, uint8_t *ptr, int len,
+@@ -196,7 +201,7 @@ static void mcc_nsc(int level, uint8_t *
+
+ static void mcc_frame(int level, struct frame *frm, long_frame_head *head)
+ {
+- mcc_short_frame_head *mcc_short_head_p = frm->ptr;
++ mcc_short_frame_head *mcc_short_head_p = (void *)frm->ptr;
+ mcc_long_frame_head mcc_head;
+ uint8_t hdr_size;
+