From 70025117ebfaa9d2029378f520711629ae35533f Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Wed, 14 Apr 2021 04:27:45 +0100 Subject: [PATCH] Change how Mac OS times are declared. --- setter/src/macos/time.c | 2 +- setter/src/macos/time.h | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/setter/src/macos/time.c b/setter/src/macos/time.c index 9a21b75..4311b02 100644 --- a/setter/src/macos/time.c +++ b/setter/src/macos/time.c @@ -84,7 +84,7 @@ void Timestamps(const char* path) for(i = 0; i < KNOWN_MAC_TIMES; i++) { memset(str255, 0, 256); - memcpy(str255, mac_times[i].filename, strlen(mac_times[i].filename)); + memcpy(str255, mac_times[i].filename, strlen((const char*)mac_times[i].filename)); rc = HCreate(refNum, dirId, str255, ostUnknown, ftGenericDocumentPC); diff --git a/setter/src/macos/time.h b/setter/src/macos/time.h index d38bb6f..17590f5 100644 --- a/setter/src/macos/time.h +++ b/setter/src/macos/time.h @@ -39,12 +39,12 @@ Copyright (C) 2011-2021 Natalia Portillo typedef struct { - char* filename; - LONGINT creation; - LONGINT modification; - LONGINT backup; - char type[13]; - char message[20]; + unsigned char* filename; + uint32_t creation; + uint32_t modification; + uint32_t backup; + char type[13]; + char message[20]; } mac_time_tests_t; #define KNOWN_MAC_TIMES 17