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

[Libguestfs] [PATCH v4 2/8] generator: No need to redefine safe_* macros.



-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v
>From d1b4b88f7d340bf653a8d9e851a568bf50904805 Mon Sep 17 00:00:00 2001
From: Richard Jones <rjones redhat com>
Date: Tue, 17 Aug 2010 11:26:54 +0100
Subject: [PATCH 2/8] generator: No need to redefine safe_* macros.

These are already defined in "guestfs-internal.h" which is
included in the .c file.
---
 src/generator.ml |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/src/generator.ml b/src/generator.ml
index 52e7aba..398f64a 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -6059,13 +6059,6 @@ and generate_client_actions () =
 #include \"guestfs-internal-actions.h\"
 #include \"guestfs_protocol.h\"
 
-#define error guestfs_error
-//#define perrorf guestfs_perrorf
-#define safe_malloc guestfs_safe_malloc
-#define safe_realloc guestfs_safe_realloc
-//#define safe_strdup guestfs_safe_strdup
-#define safe_memdup guestfs_safe_memdup
-
 /* Check the return message from a call for validity. */
 static int
 check_reply_header (guestfs_h *g,
-- 
1.7.1


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