Normalize long int and short int to just long and short.

This commit is contained in:
Markus Armbruster 2006-04-30 12:05:23 +00:00
parent a358704096
commit e09e6e587b
9 changed files with 16 additions and 16 deletions

View file

@ -794,7 +794,7 @@ extern void do_fallout(register struct sctstr *, register int);
extern void spread_fallout(struct sctstr *, int); extern void spread_fallout(struct sctstr *, int);
extern void decay_fallout(struct sctstr *, int); extern void decay_fallout(struct sctstr *, int);
extern void produce_sect(int natnum, int etu, int *bp, extern void produce_sect(int natnum, int etu, int *bp,
long int (*p_sect)[2], int sector_type); long (*p_sect)[2], int sector_type);
/* ship.c */ /* ship.c */
extern int prod_ship(int, int, int *, int); extern int prod_ship(int, int, int *, int);
extern int feed_ship(struct shpstr *, int, int *, int); extern int feed_ship(struct shpstr *, int, int *, int);

View file

@ -52,14 +52,14 @@
#include "budg.h" #include "budg.h"
#include "commands.h" #include "commands.h"
static void calc_all(long int (*p_sect)[2], int *taxes, int *Ncivs, static void calc_all(long (*p_sect)[2], int *taxes, int *Ncivs,
int *Nuws, int *bars, int *Nbars, int *mil, int *Nuws, int *bars, int *Nbars, int *mil,
int *ships, int *sbuild, int *nsbuild, int *smaint, int *ships, int *sbuild, int *nsbuild, int *smaint,
int *units, int *lbuild, int *nlbuild, int *lmaint, int *units, int *lbuild, int *nlbuild, int *lmaint,
int *planes, int *pbuild, int *npbuild, int *pmaint); int *planes, int *pbuild, int *npbuild, int *pmaint);
static int change_prio(struct natstr *np, char code, char *newval); static int change_prio(struct natstr *np, char code, char *newval);
static char *dotsprintf(char *buf, char *format, int data); static char *dotsprintf(char *buf, char *format, int data);
static void prexpense(long int cash, int *expensesp, int priority, int amount); static void prexpense(long cash, int *expensesp, int priority, int amount);
int int
budg(void) budg(void)
@ -418,7 +418,7 @@ dotsprintf(char *buf, char *format, int data)
} }
static void static void
prexpense(long int cash, int *expensesp, int priority, int amount) prexpense(long cash, int *expensesp, int priority, int amount)
{ {
if (cash > *expensesp) { if (cash > *expensesp) {
if (priority) { if (priority) {

View file

@ -45,7 +45,7 @@
#include "commands.h" #include "commands.h"
static long do_desi(struct natstr *natp, char *sects, char *deschar, static long do_desi(struct natstr *natp, char *sects, char *deschar,
long int cash, int for_real); long cash, int for_real);
int int
desi(void) desi(void)
@ -67,7 +67,7 @@ desi(void)
} }
static long static long
do_desi(struct natstr *natp, char *sects, char *deschar, long int cash, do_desi(struct natstr *natp, char *sects, char *deschar, long cash,
int for_real) int for_real)
{ {
int n; int n;

View file

@ -118,7 +118,7 @@ lwpWakeupFd(struct lwpProc *proc)
} }
void void
lwpSleepUntil(long int until) lwpSleepUntil(long until)
{ {
lwpStatus(LwpCurrent, "sleeping for %ld sec", until - time(0)); lwpStatus(LwpCurrent, "sleeping for %ld sec", until - time(0));
LwpCurrent->runtime = until; LwpCurrent->runtime = until;

View file

@ -38,7 +38,7 @@
#include "prototypes.h" #include "prototypes.h"
int int
chkmoney(long int cost, long int cash, char *argp) chkmoney(long cost, long cash, char *argp)
{ {
char buf[1024]; char buf[1024];
char *p; char *p;
@ -57,7 +57,7 @@ chkmoney(long int cost, long int cash, char *argp)
} }
int int
check_cost(int looping, int cost, long int cash, int *warnedp, check_cost(int looping, int cost, long cash, int *warnedp,
char *argp) char *argp)
{ {
char buf[1024]; char buf[1024];

View file

@ -45,7 +45,7 @@
static int findlost(char, natid, short, coord, coord, int); static int findlost(char, natid, short, coord, coord, int);
void void
makelost(char type, natid owner, short int id, coord x, coord y) makelost(char type, natid owner, short id, coord x, coord y)
{ {
struct loststr lost; struct loststr lost;
int n; int n;
@ -70,7 +70,7 @@ makelost(char type, natid owner, short int id, coord x, coord y)
} }
void void
makenotlost(char type, natid owner, short int id, coord x, coord y) makenotlost(char type, natid owner, short id, coord x, coord y)
{ {
struct loststr lost; struct loststr lost;
int n; int n;
@ -93,7 +93,7 @@ makenotlost(char type, natid owner, short int id, coord x, coord y)
* Else return -1. * Else return -1.
*/ */
static int static int
findlost(char type, natid owner, short int id, coord x, coord y, int free) findlost(char type, natid owner, short id, coord x, coord y, int free)
{ {
struct loststr lost; struct loststr lost;
int n; int n;

View file

@ -847,7 +847,7 @@ nameofitem(struct genitem *gp, int type)
} }
char * char *
mission_name(short int mission) mission_name(short mission)
{ {
switch (mission) { switch (mission) {
case MI_INTERDICT: case MI_INTERDICT:

View file

@ -61,7 +61,7 @@ long tpops[MAXNOC];
int update_pending = 0; int update_pending = 0;
static void do_prod(int, int, int, int *, long int (*)[2], int *, int *, static void do_prod(int, int, int, int *, long (*)[2], int *, int *,
int *, int *, int *, int *); int *, int *, int *, int *);
/*ARGSUSED*/ /*ARGSUSED*/
@ -210,7 +210,7 @@ update_main(void *unused)
} }
static void static void
do_prod(int sector_type, int etu, int n, int *bp, long int (*p_sect)[2], do_prod(int sector_type, int etu, int n, int *bp, long (*p_sect)[2],
int *ship_build, int *ship_maint, int *plane_build, int *ship_build, int *ship_maint, int *plane_build,
int *plane_maint, int *land_build, int *land_maint) int *plane_maint, int *land_build, int *land_maint)
{ {

View file

@ -270,7 +270,7 @@ decay_fallout(struct sctstr *sp, int etus)
* *
*/ */
void void
produce_sect(int natnum, int etu, int *bp, long int (*p_sect)[2], produce_sect(int natnum, int etu, int *bp, long (*p_sect)[2],
int sector_type) int sector_type)
{ {
struct sctstr *sp; struct sctstr *sp;