]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: pidfile: Replace 'areadlink' by 'g_file_read_link'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 13 Nov 2019 12:24:47 +0000 (13:24 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 14 Nov 2019 11:42:10 +0000 (12:42 +0100)
Use the glib function rather than gnulib.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/util/virpidfile.c

index 4a800b6528c5d3ebc9198bb7886772dbfafc4922..5d1a820cd1f6939d91b7246ef956996bfe63b04e 100644 (file)
@@ -35,7 +35,6 @@
 #include "virlog.h"
 #include "virerror.h"
 #include "c-ctype.h"
-#include "areadlink.h"
 #include "virstring.h"
 #include "virprocess.h"
 
@@ -247,7 +246,7 @@ int virPidFileReadPathIfAlive(const char *path,
      * "$procpath (deleted)".  Read that link, remove the " (deleted)"
      * part, and see if it has the same canonicalized name as binpath.
      */
-    if (!(procLink = areadlink(procPath)))
+    if (!(procLink = g_file_read_link(procPath, NULL)))
         return -1;
 
     procLinkLen = strlen(procLink);