rogue4: fix most GCC5 warnings.

Converting all function definitions to ANSI style accounts for most of
the change.  This has exposed other problems, such as daemons not
actually being their stated type, that will require more careful
solutions.
This commit is contained in:
John "Elwin" Edwards 2016-01-27 19:41:05 -05:00
parent 384386d71c
commit c1d6a6af6a
32 changed files with 625 additions and 394 deletions

View file

@ -18,8 +18,8 @@
* detach:
* Takes an item out of whatever linked list it might be in
*/
_detach(list, item)
register THING **list, *item;
void
_detach(THING **list, THING *item)
{
if (*list == item)
*list = next(item);
@ -33,8 +33,8 @@ register THING **list, *item;
* _attach:
* add an item to the head of a list
*/
_attach(list, item)
register THING **list, *item;
void
_attach(THING **list, THING *item)
{
if (*list != NULL)
{
@ -54,8 +54,8 @@ register THING **list, *item;
* _free_list:
* Throw the whole blamed thing away
*/
_free_list(ptr)
register THING **ptr;
void
_free_list(THING **ptr)
{
register THING *item;
@ -71,8 +71,8 @@ register THING **ptr;
* discard:
* Free up an item
*/
discard(item)
register THING *item;
void
discard(THING *item)
{
total--;
free((char *) item);
@ -83,7 +83,7 @@ register THING *item;
* Get a new item with a specified size
*/
THING *
new_item()
new_item(void)
{
register THING *item;