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)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
commit2638950d97cea60116c550cdfb9fd7bbe5cf6b84
treebae3c73d3f01879275763d6068becb67292a79f5
parentec272228573e3676af5bee7dc5c8b58970ab4822
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.024461 seconds and 4 git commands to generate.