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:
parent
384386d71c
commit
c1d6a6af6a
32 changed files with 625 additions and 394 deletions
|
|
@ -16,8 +16,8 @@
|
|||
* whatis:
|
||||
* What a certin object is
|
||||
*/
|
||||
whatis(insist)
|
||||
bool insist;
|
||||
void
|
||||
whatis(bool insist)
|
||||
{
|
||||
register THING *obj;
|
||||
|
||||
|
|
@ -80,7 +80,8 @@ bool insist;
|
|||
* create_obj:
|
||||
* Wizard command for getting anything he wants
|
||||
*/
|
||||
create_obj()
|
||||
void
|
||||
create_obj(void)
|
||||
{
|
||||
register THING *obj;
|
||||
register char ch, bless;
|
||||
|
|
@ -150,7 +151,8 @@ create_obj()
|
|||
* telport:
|
||||
* Bamf the hero someplace else
|
||||
*/
|
||||
teleport()
|
||||
int
|
||||
teleport(void)
|
||||
{
|
||||
register int rm;
|
||||
coord c;
|
||||
|
|
@ -194,7 +196,8 @@ teleport()
|
|||
* passwd:
|
||||
* See if user knows password
|
||||
*/
|
||||
passwd()
|
||||
bool
|
||||
passwd(void)
|
||||
{
|
||||
register char *sp, c;
|
||||
char buf[MAXSTR], *xcrypt();
|
||||
|
|
@ -219,7 +222,8 @@ passwd()
|
|||
* show_map:
|
||||
* Print out the map for the wizard
|
||||
*/
|
||||
show_map()
|
||||
void
|
||||
show_map(void)
|
||||
{
|
||||
register int y, x, real;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue