kutil/queue: use util_snprintf() in util_queue_init
authorAndres Gomez <agomez@igalia.com>
Wed, 1 Aug 2018 12:55:51 +0000 (15:55 +0300)
committerAndres Gomez <agomez@igalia.com>
Thu, 2 Aug 2018 07:06:44 +0000 (10:06 +0300)
commitd7694136d364364db4cf9d3ce850720efe4f1f4a
treed11d5feb543bb4d87789a4957283df061962dcad
parent18d9dc179f78f68e598cb21143743dbd71197c93
kutil/queue: use util_snprintf() in util_queue_init

Instead of plain snprintf(). To fix the MSVC 2013 build:

  Compiling src\util\u_queue.c ...
u_queue.c
src\util\u_queue.c(325) : warning C4013: 'snprintf' undefined; assuming extern returning int

...

mesautil.lib(u_queue.obj) : error LNK2001: unresolved external symbol _snprintf
scons: building terminated because of errors.

Fixes: b238e33bc9d ("kutil/queue: add a process name into a thread name")
Cc: Marek Olšák <marek.olsak@amd.com>
Cc: Brian Paul <brianp@vmware.com>
Cc: Roland Scheidegger <sroland@vmware.com>
Cc: Timothy Arceri <tarceri@itsqueeze.com>
Cc: Eric Engestrom <eric.engestrom@intel.com>
Signed-off-by: Andres Gomez <agomez@igalia.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/util/u_queue.c