Consistently use int for sector and unit uid parameters

This commit is contained in:
Markus Armbruster 2009-12-30 12:44:01 +01:00
parent c0ed527311
commit d8c940ec2c
4 changed files with 10 additions and 10 deletions

View file

@ -56,8 +56,8 @@ struct loststr {
/* src/lib/subs/lostsub.c */ /* src/lib/subs/lostsub.c */
extern void lost_and_found(int, natid, natid, int, coord, coord); extern void lost_and_found(int, natid, natid, int, coord, coord);
extern void makelost(int, natid, short, coord, coord); extern void makelost(int, natid, int, coord, coord);
extern void makenotlost(int, natid, short, coord, coord); extern void makenotlost(int, natid, int, coord, coord);
extern void delete_old_lostitems(void); extern void delete_old_lostitems(void);
#endif #endif

View file

@ -166,8 +166,8 @@ extern void ac_encounter(struct emp_qelem *, struct emp_qelem *, coord,
coord, char *, int); coord, char *, int);
/* src/lib/subs/aswplnsubs.c */ /* src/lib/subs/aswplnsubs.c */
extern int on_shiplist(short, struct shiplist *); extern int on_shiplist(int, struct shiplist *);
extern void add_shiplist(short, struct shiplist **); extern void add_shiplist(int, struct shiplist **);
extern void free_shiplist(struct shiplist **); extern void free_shiplist(struct shiplist **);
extern void print_shiplist(struct shiplist *); extern void print_shiplist(struct shiplist *);

View file

@ -41,7 +41,7 @@
#include "ship.h" #include "ship.h"
int int
on_shiplist(short uid, struct shiplist *head) on_shiplist(int uid, struct shiplist *head)
{ {
struct shiplist *s; struct shiplist *s;
@ -55,7 +55,7 @@ on_shiplist(short uid, struct shiplist *head)
} }
void void
add_shiplist(short uid, struct shiplist **head) add_shiplist(int uid, struct shiplist **head)
{ {
struct shiplist *s, *s2; struct shiplist *s, *s2;

View file

@ -39,7 +39,7 @@
#include "misc.h" #include "misc.h"
#include "optlist.h" #include "optlist.h"
static int findlost(int, natid, short, coord, coord, int); static int findlost(int, natid, int, coord, coord, int);
/* /*
* Record item ID of type TYPE changed owner from EXOWN to OWN at X, Y. * Record item ID of type TYPE changed owner from EXOWN to OWN at X, Y.
@ -56,7 +56,7 @@ lost_and_found(int type, natid exown, natid own, int id, coord x, coord y)
} }
void void
makelost(int type, natid owner, short id, coord x, coord y) makelost(int type, natid owner, int id, coord x, coord y)
{ {
struct loststr lost; struct loststr lost;
int n; int n;
@ -72,7 +72,7 @@ makelost(int type, natid owner, short id, coord x, coord y)
} }
void void
makenotlost(int type, natid owner, short id, coord x, coord y) makenotlost(int type, natid owner, int id, coord x, coord y)
{ {
struct loststr lost; struct loststr lost;
int n; int n;
@ -93,7 +93,7 @@ makenotlost(int type, natid owner, short id, coord x, coord y)
* Else return -1. * Else return -1.
*/ */
static int static int
findlost(int type, natid owner, short id, coord x, coord y, int free) findlost(int type, natid owner, int id, coord x, coord y, int free)
{ {
struct loststr lost; struct loststr lost;
int n; int n;