]> git.ipfire.org Git - thirdparty/systemd.git/commit
locale: kill free_and_replace() 1217/head
authorDaniel Mack <daniel@zonque.org>
Wed, 9 Sep 2015 13:15:14 +0000 (15:15 +0200)
committerDaniel Mack <daniel@zonque.org>
Wed, 9 Sep 2015 13:15:14 +0000 (15:15 +0200)
commit87699fe313cf8919917f2ea422b8d10b3ae3b244
treebf2021d700190433a8e0d806c53c8785d83a77be
parent5bdb84b393157bfd49e33450d883804383684923
locale: kill free_and_replace()

That function really makes little sense, as the open-coded variant
is much more readable. Also, if the 2nd argument is NULL, mfree()
is a much better candidate.

Convert the only users of this function in localed, and then remove it
entirely.
src/basic/util.h
src/locale/localed.c