dump_pids: fix error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]

gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -DDVBPSI_DIST -MT dump_pids-dump_pids.o -MD -MP -MF .deps/dump_pids-dump_pids.Tpo -c -o dump_pids-dump_pids.o `test -f 'dump_pids.c' || echo './'`dump_pids.c
dump_pids.c:56:54: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
        printf("packet %ld, pid %u (0x%x), cc %d\n", n, pid, pid, cc );
                       ~~~                           ^
                       %lld
1 error generated.
make[3]: *** [dump_pids-dump_pids.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
check_cc_pid: fix error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]

gcc -DHAVE_CONFIG_H -I. -I..     -g -O2 -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -DDVBPSI_DIST -MT check_cc_pid-check_cc_pid.o -MD -MP -MF .deps/check_cc_pid-check_cc_pid.Tpo -c -o check_cc_pid-check_cc_pid.o `test -f 'check_cc_pid.c' || echo './'`check_cc_pid.c
check_cc_pid.c:69:20: error: format specifies type 'long' but the argument has type 'int64_t' (aka 'long long') [-Werror,-Wformat]
                   n, pid, pid, cc,
                   ^
1 error generated.
make[3]: *** [check_cc_pid-check_cc_pid.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
dvbinfo: fix error: unknown type name 'ssize_t'; did you mean 'size_t'?

gcc -DHAVE_CONFIG_H -I. -I../..  -D_FILE_OFFSET_BITS=64 -DDVBPSI_DIST   -g -O2 -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -DDVBPSI_DIST -MT dvbinfo-buffer.o -MD -MP -MF .deps/dvbinfo-buffer.Tpo -c -o dvbinfo-buffer.o `test -f 'buffer.c' || echo './'`buffer.c
In file included from buffer.c:39:
./buffer.h:56:1: error: unknown type name 'ssize_t'; did you mean 'size_t'?
ssize_t fifo_count(fifo_t *fifo);
^~~~~~~
size_t
/usr/include/sys/_types/_size_t.h:30:32: note: 'size_t' declared here
typedef __darwin_size_t        size_t;
                               ^
buffer.c:46:5: error: unknown type name 'ssize_t'; did you mean 'size_t'?
    ssize_t    i_count;
    ^~~~~~~
    size_t
/usr/include/sys/_types/_size_t.h:30:32: note: 'size_t' declared here
typedef __darwin_size_t        size_t;
                               ^
buffer.c:126:1: error: unknown type name 'ssize_t'; did you mean 'size_t'?
ssize_t fifo_count(fifo_t *fifo)
^~~~~~~
size_t
/usr/include/sys/_types/_size_t.h:30:32: note: 'size_t' declared here
typedef __darwin_size_t        size_t;
                               ^
buffer.c:129:5: error: unknown type name 'ssize_t'; did you mean 'size_t'?
    ssize_t count = fifo->i_count;
    ^~~~~~~
    size_t
/usr/include/sys/_types/_size_t.h:30:32: note: 'size_t' declared here
typedef __darwin_size_t        size_t;
                               ^
4 errors generated.
make[3]: *** [dvbinfo-buffer.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
dvbinfo: fix error: 'daemon' is deprecated: first deprecated in OS X 10.5 [-Werror,-Wdeprecated-declarations]

gcc -DHAVE_CONFIG_H -I. -I../..  -D_FILE_OFFSET_BITS=64 -DDVBPSI_DIST   -g -O2 -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -DDVBPSI_DIST -MT dvbinfo-dvbinfo.o -MD -MP -MF .deps/dvbinfo-dvbinfo.Tpo -c -o dvbinfo-dvbinfo.o `test -f 'dvbinfo.c' || echo './'`dvbinfo.c
dvbinfo.c:656:13: error: 'daemon' is deprecated: first deprecated in OS X 10.5 [-Werror,-Wdeprecated-declarations]
        if (daemon(1,0) < 0)
            ^
/usr/include/stdlib.h:267:6: note: 'daemon' declared here
int      daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0);
         ^
1 error generated.
make[3]: *** [dvbinfo-dvbinfo.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
test_dr: HACK bypass error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]

gcc -DHAVE_CONFIG_H -I. -I..  -DDVBPSI_DIST   -g -O2 -Wall -Werror --std=gnu99 -D_GNU_SOURCE -Wpointer-arith -Wcast-align -Wcast-qual -Wstrict-prototypes -Wshadow -Waggregate-return -Wmissing-prototypes -Wnested-externs -Wsign-compare -DDVBPSI_DIST -MT test_dr-test_dr.o -MD -MP -MF .deps/test_dr-test_dr.Tpo -c -o test_dr-test_dr.o `test -f 'test_dr.c' || echo './'`test_dr.c
test_dr.c:49:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_multiple_frame_rate)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:73:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_constrained_parameter)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:85:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_still_picture)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:113:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_multiple_frame_rate)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:143:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_constrained_parameter)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:158:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_still_picture)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:203:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_frame_rate_extension)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:226:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_free_format)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:488:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_external_clock_ref)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
test_dr.c:531:3: error: comparison of constant 12 with expression of type 'bool' is always true [-Werror,-Wtautological-constant-out-of-range-compare]
  BOZO_end_boolean(b_mdv_valid)
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
./test_dr.h:102:39: note: expanded from macro 'BOZO_end_boolean'
    } while(!i_err && (s_decoded.name <= 12));                          \
                       ~~~~~~~~~~~~~~ ^  ~~
10 errors generated.
make[2]: *** [test_dr-test_dr.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>
dvbinfo: fix clang: error: argument unused during compilation: '-pthread'

Signed-off-by: Michael Ira Krufky <mkrufky@linuxtv.org>