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

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



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 1dc0090..0518a8f 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 f2532d4..a281350 100644
--- a/src/util/virpidfile.c
+++ b/src/util/virpidfile.c
@@ -303,8 +303,6 @@ cleanup:
 }
 
 
-verify(sizeof(pid_t) <= sizeof(unsigned int));
-
 int virPidFileAcquirePath(const char *path,
                           pid_t pid)
 {
-- 
1.7.7.5


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