Fix compiler warnings.

Mainly missing prototypes, a few char subscripts and some missing braces.


git-svn-id: svn://svn.code.sf.net/p/staden/code/staden@3598 ba6f2710-ca9f-427c-89d3-5bf716dbc8e1