Fix memory alignment and remove dead/useless code.
authorbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Jul 2010 22:37:04 +0000 (22:37 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 8 Jul 2010 22:37:04 +0000 (22:37 +0000)
commit0bf721cfe3007ca1df259f2933fea693c9c007af
tree7ffc011c749d7be84c91c3b27facbc8c16e86b80
parentca9523ce5d6b96aeb77d74e6001230c9b71ed82b
Fix memory alignment and remove dead/useless code.

 * those write to stderr were legacy from development, some of them
   were even wrongly accessing out-of-buffer memory;

 * some platforms cannot access non-aligned memory, like integers that
   are not aligned to sizeof(int) and do on. Change the generated
   message using memcpy to aligned memory before using them. Add
   comment to explain that;

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ethumb@50135 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33
src/bin/ethumbd.c