[sysprof: 41/63] libsysprof-capture: Use unlink() rather than g_unlink()



commit 8641789d87228570f56c50dee7784722c9046a35
Author: Philip Withnall <withnall endlessm com>
Date:   Thu Jul 2 12:49:44 2020 +0100

    libsysprof-capture: Use unlink() rather than g_unlink()
    
    They’re equivalent.
    
    Signed-off-by: Philip Withnall <withnall endlessm com>
    
    Helps: #40

 src/libsysprof-capture/sysprof-capture-writer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/libsysprof-capture/sysprof-capture-writer.c b/src/libsysprof-capture/sysprof-capture-writer.c
index 7926e6a..0170488 100644
--- a/src/libsysprof-capture/sysprof-capture-writer.c
+++ b/src/libsysprof-capture/sysprof-capture-writer.c
@@ -988,7 +988,7 @@ handle_errno:
   if (fd != -1)
     {
       close (fd);
-      g_unlink (filename);
+      unlink (filename);
     }
 
   return false;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]