Manage big endian/little endian

This commit is contained in:
Laurent Vivier 2006-05-29 19:50:37 +00:00
parent 0b6dcf91f1
commit b2e366a3c5

View File

@ -7,8 +7,9 @@ static __attribute__((used)) char* rcsid = "$CVSHeader$";
#include "partition.h"
#include "libemile.h"
#include "emile.h"
int emile_map_partition_is_valid(emile_map_t *map)
{
return map->partition.Sig == MAP_SIGNATURE;
return read_short(&map->partition.Sig) == MAP_SIGNATURE;
}