1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

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 <rb@sernet.de>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Ralph Boehme 2014-07-10 16:32:15 +02:00 committed by Volker Lendecke
parent 335171ef07
commit b3d17aa5ba

View File

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