[PATCH 9/9] internal: delete VIR_STEAL_PTR

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

 



Delete the macro to prevent its usage in new code.

The GLib version should be used instead:
    p = g_steal_pointer(&ptr);

Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
---
 src/internal.h | 12 ------------
 1 file changed, 12 deletions(-)

diff --git a/src/internal.h b/src/internal.h
index 722cdbc57c..fb17b87baa 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -213,18 +213,6 @@
         (a) = (a) ^ (b); \
     } while (0)
 
-/**
- * VIR_STEAL_PTR:
- *
- * Steals pointer passed as second argument into the first argument. Second
- * argument must not have side effects.
- */
-#define VIR_STEAL_PTR(a, b) \
-    do { \
-        (a) = (b); \
-        (b) = NULL; \
-    } while (0)
-
 /**
  * virCheckFlags:
  * @supported: an OR'ed set of supported flags
-- 
2.19.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux