PX4/Firmware — pull request #1092 by DonLakeFlyer (2014-06-29 18:46:56+00:00)
Title: Fix bugs found by Warnings work

I started a separate pull to work on fixing compiler warnings. These are the bugs I found during that work which I am pushing up separately so they get better scrutiny. Especially note the ones which have FIXME comments where some questions still remain. If you could comment on those and then I will update and/or remove the FIXME comments.

Also just noticed that in mtd.c one of the straight warnings fixes slipped through for signed/unisgned changes. No real bug in that part, just a warning.