[libvirt] [PATCH 4/4] Remove compile-time pid_t size check

Marc-André Lureau marcandre.lureau at gmail.com
Thu Feb 2 00:28:31 UTC 2012


It seems all the code use pid_t type properly, so it is safe
to drop that check now.
---
 src/util/command.c    |    3 ---
 src/util/virpidfile.c |    2 --
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/src/util/command.c b/src/util/command.c
index 1e4c206..ce992a6 100644
--- a/src/util/command.c
+++ b/src/util/command.c
@@ -50,9 +50,6 @@
     virReportErrorHelper(VIR_FROM_NONE, code, __FILE__,                 \
                          __FUNCTION__, __LINE__, __VA_ARGS__)
 
-/* We have quite a bit of changes to make if this doesn't hold.  */
-verify(sizeof(pid_t) <= sizeof(int));
-
 /* Flags for virExecWithHook */
 enum {
     VIR_EXEC_NONE   = 0,
diff --git a/src/util/virpidfile.c b/src/util/virpidfile.c
index bbcdd53..1fa2de9 100644
--- a/src/util/virpidfile.c
+++ b/src/util/virpidfile.c
@@ -311,8 +311,6 @@ cleanup:
 }
 
 
-verify(sizeof(pid_t) <= sizeof(unsigned int));
-
 int virPidFileAcquirePath(const char *path,
                           pid_t pid)
 {
-- 
1.7.7.6




More information about the libvir-list mailing list