Super-Rogue: convert to ANSI-style function declarations.
This fixes most of the build warnings.
This commit is contained in:
parent
0f87d5b4d8
commit
59f448e92e
33 changed files with 783 additions and 518 deletions
|
|
@ -21,7 +21,8 @@
|
|||
* wear:
|
||||
* The player wants to wear something, so let the hero try
|
||||
*/
|
||||
wear()
|
||||
void
|
||||
wear(void)
|
||||
{
|
||||
reg struct linked_list *item;
|
||||
reg struct object *obj;
|
||||
|
|
@ -50,7 +51,8 @@ wear()
|
|||
* take_off:
|
||||
* Get the armor off of the players back
|
||||
*/
|
||||
take_off()
|
||||
void
|
||||
take_off(void)
|
||||
{
|
||||
reg struct object *obj;
|
||||
|
||||
|
|
@ -69,9 +71,8 @@ take_off()
|
|||
* initarmor:
|
||||
* Initialize some armor.
|
||||
*/
|
||||
initarmor(obj, what)
|
||||
struct object *obj;
|
||||
int what;
|
||||
void
|
||||
initarmor(struct object *obj, int what)
|
||||
{
|
||||
struct init_armor *iwa;
|
||||
struct magic_item *mi;
|
||||
|
|
@ -90,8 +91,8 @@ int what;
|
|||
* hurt_armor:
|
||||
* Returns TRUE if armor is damaged
|
||||
*/
|
||||
hurt_armor(obj)
|
||||
struct object *obj;
|
||||
bool
|
||||
hurt_armor(struct object *obj)
|
||||
{
|
||||
reg int type, ac;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue