freebsd-ports/comms/hcidump/files/patch-parser.c
Alexey Dokuchaev 1277935b6f Resurrect this port. It is actually very useful to debug Bluetooth problems
and also is referenced in the FreeBSD Handbook.  Add license (GPLv2) while I
am here.

Requested by:	emax
2011-09-06 09:28:23 +00:00

11 lines
369 B
C

--- parser/parser.c.ORIG Fri Sep 22 23:33:36 2006
+++ parser/parser.c Fri Sep 22 23:34:45 2006
@@ -65,7 +65,7 @@
if (!parser.state) {
if (parser.flags & DUMP_TSTAMP)
- printf("%8lu.%06lu ", f->ts.tv_sec, f->ts.tv_usec);
+ printf("%8lu.%06lu ", (unsigned long)f->ts.tv_sec, f->ts.tv_usec);
printf("%c ", (f->in ? '>' : '<'));
parser.state = 1;
} else