From b3d17aa5ba7d1d72bb96fdc07b575dde78d0da3e Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Thu, 10 Jul 2014 16:32:15 +0200 Subject: Fix AFP_BackupTime byte order and use ISO C99 integer types AFP_BackupTime value must be 0x80000000 and all existing defines use native byte order, not byte swapped. Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison Reviewed-by: Volker Lendecke --- source3/include/MacExtensions.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source3/include') diff --git a/source3/include/MacExtensions.h b/source3/include/MacExtensions.h index a60f894f8e..5b00998a95 100644 --- a/source3/include/MacExtensions.h +++ b/source3/include/MacExtensions.h @@ -49,7 +49,7 @@ #define AFP_INFO_SIZE 0x3c #define AFP_Signature 0x41465000 #define AFP_Version 0x00000100 -#define AFP_BackupTime 0x00000080 +#define AFP_BackupTime 0x80000000 #define AFP_FinderSize 32 /* ** Orginal AFP_AfpInfo stream used by NT @@ -59,10 +59,10 @@ */ typedef struct _AfpInfo { - uint32 afpi_Signature; /* Must be *(PDWORD)"AFP" */ - uint32 afpi_Version; /* Must be 0x00010000 */ - uint32 afpi_Reserved1; - uint32 afpi_BackupTime; /* Backup time for the file/dir */ + uint32_t afpi_Signature; /* Must be *(PDWORD)"AFP" */ + uint32_t afpi_Version; /* Must be 0x00010000 */ + uint32_t afpi_Reserved1; + uint32_t afpi_BackupTime; /* Backup time for the file/dir */ unsigned char afpi_FinderInfo[AFP_FinderSize]; /* Finder Info (32 bytes) */ unsigned char afpi_ProDosInfo[6]; /* ProDos Info (6 bytes) # */ unsigned char afpi_Reserved2[6]; -- cgit