flt.lttng-utils.debug-info: use glib memory and string functions
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 27 Mar 2019 14:44:05 +0000 (10:44 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Thu, 2 May 2019 04:09:19 +0000 (00:09 -0400)
commit9916d162e08a055fe51ba22678d43bef5f7b0026
tree0a17d14be4bcaf11cf7d56a32355d01c6d3abd6f
parenteaed4f8bf045271e8b74d7adb051e108a213f5ca
flt.lttng-utils.debug-info: use glib memory and string functions

- Change use of glibc's malloc() to glib's g_new0() to follow the rest of
  the project.

- Change use of glibc string functions to their glib equivalent.

- Remove uses of GNU extension of conditional expressions with omitted
  operands as it would only be useful if the evaluation of the condition
  had side effects which it doesn't. Let's prefer code simplicity.

[0]:  https://gcc.gnu.org/onlinedocs/gcc-4.2.4/gcc/Conditionals.html

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
plugins/lttng-utils/bin-info.c
plugins/lttng-utils/bin-info.h
plugins/lttng-utils/debug-info.c
plugins/lttng-utils/dwarf.c
This page took 0.024529 seconds and 5 git commands to generate.