Re: [PATCH v2] time_t is not a long on FreeBSD, switch internal type to long long

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

 



2011/5/25 Eric Blake <eblake@xxxxxxxxxx>:
> On 05/25/2011 09:05 AM, Matthias Bolte wrote:
>> ---
>> v2: switch internal type to long long instead of adding casts for time_t
>>
>> Âsrc/conf/domain_conf.c | Â Â8 ++++----
>> Âsrc/conf/domain_conf.h | Â Â2 +-
>> Âsrc/esx/esx_vi_types.c | Â Â2 +-
>> Âsrc/esx/esx_vi_types.h | Â Â2 +-
>> Â4 files changed, 7 insertions(+), 7 deletions(-)
>
> ACK.
>

I missed to fix the test case to the
esxVI_DateTime_ConvertToCalendarTime function, so fold this in before
pushing.

diff --git a/tests/esxutilstest.c b/tests/esxutilstest.c
index 2b36535..51c1e34 100644
--- a/tests/esxutilstest.c
+++ b/tests/esxutilstest.c
@@ -169,7 +169,7 @@ testParseDatastorePath(const void *data ATTRIBUTE_UNUSED)

 struct testDateTime {
     const char *dateTime;
-    time_t calendarTime;
+    long long calendarTime;
 };

 static struct testDateTime times[] = {
@@ -205,7 +205,7 @@ testConvertDateTimeToCalendarTime(const void *data
ATTRIBUTE_UNUSED)
 {
     int i;
     esxVI_DateTime dateTime;
-    time_t calendarTime;
+    long long calendarTime;

     for (i = 0; i < ARRAY_CARDINALITY(times); ++i) {
         dateTime.value = (char *)times[i].dateTime;

Matthias

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