[Libosinfo] [PATCH libosinfo 0/4] Replace strcmp() with g_str_equal()

Fabiano Fidêncio fidencio at redhat.com
Wed Sep 5 06:59:33 UTC 2018


This patchset replaces strcmp() usage for g_str_equal() and also
re-enables and adjusts sc_prohibit_strcmp.

The only strncmp() usage we have in our code has been kept.
In the same way, places where we're using g_strcmp0() is safer were also
kept.

https://bugzilla.redhat.com/show_bug.cgi?id=1335291

Fabiano Fidêncio (4):
  loader: Replace strcmp() with g_str_equal()
  osinfo-detect: Replace strcmp() with g_str_equal()
  maint.mk: Re-enable sc_prohibit_strcmp
  maint.mk: Adjust sc_prohibit_strcmp

 cfg.mk                 |  2 --
 maint.mk               |  5 ++--
 osinfo/osinfo_loader.c | 68 +++++++++++++++++++++---------------------
 tools/osinfo-detect.c  |  8 ++---
 4 files changed, 40 insertions(+), 43 deletions(-)

-- 
2.17.1




More information about the Libosinfo mailing list