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

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

 



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

--
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]