]> git.ipfire.org Git - thirdparty/freeswitch.git/commit
[mod_opusfile] fix type errors 1418/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Mon, 1 Nov 2021 08:48:15 +0000 (09:48 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Mon, 1 Nov 2021 08:51:26 +0000 (09:51 +0100)
commit3128afeae7cadafd9838569af21e4f2a454893bb
tree89973521f70e1c065511cfe1872ec55e5a772c66
parent9f26a15220b8b8b09c4debe41fe395d25d4cfeec
[mod_opusfile] fix type errors

Since the last round of changes it fails to compile:

mod_opusfile.c: In function 'decode_stream_cb':
mod_opusfile.c:933:143: error: format '%lx' expects argument of type 'long unsigned int', but argument 8 has type 'switch_thread_id_t' {aka 'struct __pthread *'} [-Werror=format=]
  933 |                 switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "[OGG/OPUS Stream Decode] decode_stream_cb(): switch_thread_self(): %lx\n",  switch_thread_self());
      |                                                                                                                                             ~~^      ~~~~~~~~~~~~~~~~~~~~
      |                                                                                                                                               |      |
      |                                                                                                                                               |      switch_thread_id_t {aka struct __pthread *}
      |                                                                                                                                               long unsigned int

Address this by applying the same casts that are also used in
src/mod/formats/mod_sndfile/test/test_sndfile.c already.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
src/mod/formats/mod_opusfile/mod_opusfile.c