]> git.notmuchmail.org Git - notmuch/commit
lib: fix byte order test in libsha1.c
authorDavid Bremner <david@tethera.net>
Sun, 24 Nov 2013 21:29:42 +0000 (17:29 -0400)
committerDavid Bremner <david@tethera.net>
Mon, 25 Nov 2013 11:55:54 +0000 (07:55 -0400)
commit20adfe39d7624150a5b337bb77a9647bb3def54b
treed05e142abc3069235a8a6f0c9374534601e531db
parent89bf67fe41e3db270366a49be4f0a7afb07d0eae
lib: fix byte order test in libsha1.c

Previously PLATFORM_BYTE_ORDER and IS_LITTLE_ENDIAN were not defined,
so the little endian code was always compiled in.

This will have the effect that the "SHA1s" on big endian architectures
will change (i.e. become actual sha1s). So someone re-indexing their
database could conceivable lose tags on messages without a message-id
header.
lib/libsha1.c