]> git.pond.sub.org Git - empserver/commitdiff
s_char purge directed by compiler warnings.
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 29 Apr 2006 06:41:45 +0000 (06:41 +0000)
committerMarkus Armbruster <armbru@pond.sub.org>
Sat, 29 Apr 2006 06:41:45 +0000 (06:41 +0000)
130 files changed:
include/combat.h
include/empio.h
include/ioqueue.h
include/land.h
include/map.h
include/plane.h
include/prototypes.h
include/tel.h
include/trade.h
src/lib/commands/arm.c
src/lib/commands/army.c
src/lib/commands/assa.c
src/lib/commands/atta.c
src/lib/commands/bdes.c
src/lib/commands/best.c
src/lib/commands/boar.c
src/lib/commands/bomb.c
src/lib/commands/buil.c
src/lib/commands/buy.c
src/lib/commands/cede.c
src/lib/commands/chan.c
src/lib/commands/comm.c
src/lib/commands/cons.c
src/lib/commands/cuto.c
src/lib/commands/decl.c
src/lib/commands/deli.c
src/lib/commands/demo.c
src/lib/commands/desi.c
src/lib/commands/dist.c
src/lib/commands/drop.c
src/lib/commands/dump.c
src/lib/commands/enli.c
src/lib/commands/flee.c
src/lib/commands/fly.c
src/lib/commands/foll.c
src/lib/commands/fort.c
src/lib/commands/fuel.c
src/lib/commands/give.c
src/lib/commands/grin.c
src/lib/commands/hard.c
src/lib/commands/improve.c
src/lib/commands/info.c
src/lib/commands/laun.c
src/lib/commands/lboard.c
src/lib/commands/load.c
src/lib/commands/lten.c
src/lib/commands/map.c
src/lib/commands/marc.c
src/lib/commands/mfir.c
src/lib/commands/mine.c
src/lib/commands/mobq.c
src/lib/commands/mora.c
src/lib/commands/name.c
src/lib/commands/navi.c
src/lib/commands/news.c
src/lib/commands/offe.c
src/lib/commands/orde.c
src/lib/commands/orig.c
src/lib/commands/para.c
src/lib/commands/path.c
src/lib/commands/powe.c
src/lib/commands/rada.c
src/lib/commands/rang.c
src/lib/commands/rea.c
src/lib/commands/reco.c
src/lib/commands/reje.c
src/lib/commands/rese.c
src/lib/commands/retr.c
src/lib/commands/rout.c
src/lib/commands/scra.c
src/lib/commands/scut.c
src/lib/commands/sect.c
src/lib/commands/sell.c
src/lib/commands/set.c
src/lib/commands/setres.c
src/lib/commands/setsect.c
src/lib/commands/show.c
src/lib/commands/skyw.c
src/lib/commands/strv.c
src/lib/commands/surv.c
src/lib/commands/swap.c
src/lib/commands/tend.c
src/lib/commands/terr.c
src/lib/commands/thre.c
src/lib/commands/togg.c
src/lib/commands/torp.c
src/lib/commands/trad.c
src/lib/commands/upgr.c
src/lib/commands/wing.c
src/lib/commands/work.c
src/lib/commands/zdon.c
src/lib/common/mailbox.c
src/lib/common/maps.c
src/lib/common/path.c
src/lib/gen/copy.c
src/lib/gen/emp_config.c
src/lib/gen/io.c
src/lib/gen/ioqueue.c
src/lib/gen/numstr.c
src/lib/gen/onearg.c
src/lib/gen/plur.c
src/lib/player/empdis.c
src/lib/player/nat.c
src/lib/subs/aircombat.c
src/lib/subs/askyn.c
src/lib/subs/attsub.c
src/lib/subs/border.c
src/lib/subs/caploss.c
src/lib/subs/chkmoney.c
src/lib/subs/detonate.c
src/lib/subs/land.c
src/lib/subs/list.c
src/lib/subs/lndsub.c
src/lib/subs/mission.c
src/lib/subs/mslsub.c
src/lib/subs/mtch.c
src/lib/subs/plane.c
src/lib/subs/radmap.c
src/lib/subs/rej.c
src/lib/subs/satmap.c
src/lib/subs/sect.c
src/lib/subs/ship.c
src/lib/subs/shpsub.c
src/lib/subs/supply.c
src/lib/subs/trdsub.c
src/lib/subs/trechk.c
src/lib/update/distribute.c
src/lib/update/finish.c
src/lib/update/sail.c
src/server/shutdown.c

index 4b9c0c425ea5a4c70ed9128878c2b2b9db718918..8f76459418f0b2b43ae71524701776f7ff083008 100644 (file)
@@ -56,7 +56,7 @@ struct combat {
     struct dchrstr *sct_dcp;
     struct mchrstr *shp_mcp;
     struct lchrstr *lnd_lcp;
-    s_char shp_name[MAXSHPNAMLEN];
+    char shp_name[MAXSHPNAMLEN];
     int relations_checked;
 };
 
index 3f22b9cb8d7c7e8e67b3901e268b80963cf57494..d57278b64b273cbf7ed2b33bd577022e84d5fbcd 100644 (file)
@@ -54,12 +54,12 @@ extern int io_input(struct iop *, int);
 extern int io_inputwaiting(struct iop *);
 extern int io_outputwaiting(struct iop *);
 extern int io_output(struct iop *, int);
-extern int io_peek(struct iop *, s_char *, int);
-extern int io_read(struct iop *, s_char *, int);
-extern int io_write(struct iop *, s_char *, int, int);
+extern int io_peek(struct iop *, char *, int);
+extern int io_read(struct iop *, char *, int);
+extern int io_write(struct iop *, char *, int, int);
 extern int io_output_all(struct iop *);
-extern int io_gets(struct iop *, s_char *, int);
-extern int io_puts(struct iop *, s_char *);
+extern int io_gets(struct iop *, char *, int);
+extern int io_puts(struct iop *, char *);
 extern int io_shutdown(struct iop *, int);
 extern int io_error(struct iop *);
 extern int io_eof(struct iop *);
index 9c5ae76f1e6f5b31c21ffbc4efda995857623b2a..d8b78bbfe1c4981f91ffc5f39f0fde5c4331b6ad 100644 (file)
@@ -56,11 +56,11 @@ extern int ioq_makebuf(struct ioqueue *ioq, char *pBuf, int nBufLen);
 #else
 extern int ioq_makeiov(struct ioqueue *ioq, struct iovec *iov, int cc);
 #endif
-extern int ioq_peek(struct ioqueue *ioq, s_char *buf, int cc);
+extern int ioq_peek(struct ioqueue *ioq, char *buf, int cc);
 extern int ioq_dequeue(struct ioqueue *ioq, int cc);
-extern void ioq_append(struct ioqueue *ioq, s_char *buf, int cc);
+extern void ioq_append(struct ioqueue *ioq, char *buf, int cc);
 extern int ioq_qsize(struct ioqueue *ioq);
-extern int ioq_gets(struct ioqueue *ioq, s_char *buf, int cc);
-extern int ioq_puts(struct ioqueue *ioq, s_char *buf);
+extern int ioq_gets(struct ioqueue *ioq, char *buf, int cc);
+extern int ioq_puts(struct ioqueue *ioq, char *buf);
 
 #endif
index c66d48df4746c3738515f37d14a37c776e814ee0..beb5d4df2cc241994d50f20597f1c4d2bc6d948f 100644 (file)
@@ -201,22 +201,22 @@ enum {
 extern void lnd_sweep(struct emp_qelem *, int, int, natid);
 extern int lnd_interdict(struct emp_qelem *, coord, coord, natid);
 extern void lnd_sel(struct nstr_item *, struct emp_qelem *);
-extern void lnd_mess(s_char *, struct llist *);
+extern void lnd_mess(char *, struct llist *);
 extern int lnd_check_mines(struct emp_qelem *);
 extern double lnd_mobcost(struct lndstr *, struct sctstr *, int);
-extern s_char *lnd_path(int, struct lndstr *, s_char *);
+extern char *lnd_path(int, struct lndstr *, char *);
 
 extern int attack_val(int, struct lndstr *);
 extern int total_mil(struct lndstr *);
 extern int defense_val(struct lndstr *);
 extern int lnd_getmil(struct lndstr *);
-extern void lnd_print(struct llist *, s_char *);
-extern void lnd_delete(struct llist *, s_char *);
+extern void lnd_print(struct llist *, char *);
+extern void lnd_delete(struct llist *, char *);
 extern int lnd_take_casualty(int, struct llist *, int);
 extern void lnd_submil(struct lndstr *, int);
 extern void lnd_takemob(struct emp_qelem *, double);
 extern int lnd_spyval(struct lndstr *);
-extern int intelligence_report(int, struct lndstr *, int, s_char *);
+extern int intelligence_report(int, struct lndstr *, int, char *);
 extern int count_sect_units(struct sctstr *);
 extern void count_units(struct shpstr *);
 extern void lnd_count_units(struct lndstr *);
index 5f75eb1f0e6642c3767a5d68cfcb11ea640149b8..249b8339a7e8ec151ca99f7dc20b0eb4b0be37c4 100644 (file)
 
 #define        MAPWIDTH(persec) ((WORLD_X/2)*(persec + 1)+1)
 
-extern void blankfill(s_char *, register struct range *, int);
+extern void blankfill(char *, struct range *, int);
 /* src/lib/subs/border.c */
 extern int map_set(natid, coord, coord, s_char, int);
 extern void writebmap(natid);
 extern void writemap(natid);
 /* src/lib/subs/border.c */
-extern void border(struct range *, s_char *, s_char *);
+extern void border(struct range *, char *, char *);
 
 #define MAP_SHIP       bit(0)
 #define MAP_LAND       bit(1)
index 6035bf1e32872730f1518ffaef14f0631a11d899..3f556c33792e358156142ff0871894e4df018e74 100644 (file)
@@ -162,7 +162,7 @@ struct shiplist {
 
 /* src/lib/subs/aircombat.c */
 extern void ac_planedamage(struct plist *, natid, int, natid, int,
-                          int, s_char *);
+                          int, char *);
 extern void ac_intercept(struct emp_qelem *, struct emp_qelem *,
                         struct emp_qelem *, natid, coord, coord);
 extern void ac_combat_headers(natid, natid);
@@ -173,7 +173,7 @@ extern void ac_landflak(struct emp_qelem *, coord, coord);
 extern void ac_fireflak(struct emp_qelem *, natid, natid, int);
 extern int ac_flak_dam(int);
 extern void ac_encounter(struct emp_qelem *, struct emp_qelem *, coord,
-                        coord, s_char *, int, int,
+                        coord, char *, int, int,
                         struct emp_qelem *, struct emp_qelem *);
 extern int ac_isflying(struct plnstr *, struct emp_qelem *);
 extern int do_evade(struct emp_qelem *, struct emp_qelem *);
index d1b19871a474c40ca0a792d679632712f1f7c440..97559e7e183075202cdd4467af1d32dcbfe641d5 100644 (file)
@@ -71,11 +71,11 @@ extern int nav_map(int, int, int);
 extern int count_pop(int);
 extern int scuttle_tradeship(struct shpstr *, int);
 extern void scuttle_ship(struct shpstr *);
-extern void resnoise(struct sctstr *sptr, int public_amt, s_char *name,
+extern void resnoise(struct sctstr *sptr, int public_amt, char *name,
                     int old, int new);
 extern int line_of_sight(char **rad, int ax, int ay, int bx, int by);
 extern void plane_sona(struct emp_qelem *, int, int, struct shiplist **);
-extern s_char *prsub(struct shpstr *);
+extern char *prsub(struct shpstr *);
 extern int check_trade(void);
 extern int ontradingblock(int, void *);
 extern void trdswitchown(int, void *, int);
@@ -312,7 +312,7 @@ extern void logerror(char *, ...) ATTRIBUTE((format (printf, 1, 2)));
 extern int draw_map(int, s_char, int, struct nstr_sect *);
 extern int unit_map(int, int, struct nstr_sect *, s_char *);
 extern int bmaps_intersect(natid, natid);
-extern int share_bmap(natid, natid, struct nstr_sect *, s_char, s_char *);
+extern int share_bmap(natid, natid, struct nstr_sect *, char, char *);
 /* move.c */
 /* in path.h */
 /* nstr_subs.c */
@@ -321,13 +321,13 @@ extern int share_bmap(natid, natid, struct nstr_sect *, s_char, s_char *);
 extern void bp_enable_cachepath(void);
 extern void bp_disable_cachepath(void);
 extern void bp_clear_cachepath(void);
-extern s_char *BestDistPath(s_char *, struct sctstr *, struct sctstr *,
-                           double *, int);
-extern s_char *BestLandPath(s_char *, struct sctstr *, struct sctstr *,
-                           double *, int);
-extern s_char *BestShipPath(s_char *, int, int, int, int, int);
-extern s_char *BestAirPath(s_char *, int, int, int, int);
-extern double pathcost(struct sctstr *, s_char *, int);
+extern char *BestDistPath(char *, struct sctstr *, struct sctstr *,
+                         double *, int);
+extern char *BestLandPath(char *, struct sctstr *, struct sctstr *,
+                         double *, int);
+extern char *BestShipPath(char *, int, int, int, int, int);
+extern char *BestAirPath(char *, int, int, int, int);
+extern double pathcost(struct sctstr *, char *, int);
 /* res_pop.c */
 extern int max_population(float, int, int);
 extern int max_pop(float, struct sctstr *);
@@ -382,18 +382,18 @@ extern int diffy(int, int);
 extern int deltax(int, int);
 extern int deltay(int, int);
 extern int mapdist(int, int, int, int);
-extern s_char *effadv(int);
-extern int onearg(s_char *, s_char *);
+extern char *effadv(int);
+extern int onearg(char *, char *);
 extern int parse(char *, char **, char **, char *, char **);
 extern int ldround(double, int);
 extern int roundintby(int, int);
 extern int scthash(register int, register int, int);
 extern int tcp_listen(char *, char *, size_t *);
-extern s_char *numstr(s_char buf[], int n);
+extern char *numstr(char buf[], int n);
 /* plur.c */
-extern s_char *esplur(int n);
-extern s_char *splur(int n);
-extern s_char *iesplur(int n);
+extern char *esplur(int n);
+extern char *splur(int n);
+extern char *iesplur(int n);
 extern char *plurize(char *buf, int max_len, int n);
 /* more in misc.h */
 
@@ -432,8 +432,8 @@ extern int init_nats(void);
 /* login.c */
 extern void player_login(void *);
 /* nat.c */
-extern int natbyname(s_char *, natid *);
-extern int natpass(int, s_char *);
+extern int natbyname(char *, natid *);
+extern int natpass(int, char *);
 /* player.c */
 extern struct player *player;  /* current player's context */
 extern char *praddr(struct player *);
@@ -451,15 +451,15 @@ extern void stop_service(void);
  * src/lib/subs/ *.c 
  */
 /* askyn.c */
-extern int confirm(s_char *);
-extern int askyn(s_char *);
+extern int confirm(char *);
+extern int askyn(char *);
 /* bsanct.c */
 extern void bsanct(void);
 /* caploss.c */
-extern void caploss(struct sctstr *, natid, s_char *);
+extern void caploss(struct sctstr *, natid, char *);
 /* chkmoney.c */
-extern int chkmoney(long, long, s_char *);
-extern int check_cost(int, int, long, int *, s_char *);
+extern int chkmoney(long, long, char *);
+extern int check_cost(int, int, long, int *, char *);
 /* cnumb.c */
 extern int cnumb(char *);
 /* coastal.c */
@@ -488,7 +488,7 @@ extern void bitinit2(struct nstr_sect *, unsigned char *, int);
 /* getele.c */
 extern int getele(char *, char *);
 /* land.c */
-extern s_char *prland(struct lndstr *);
+extern char *prland(struct lndstr *);
 extern int lnd_postread(int, void *);
 extern int lnd_prewrite(int, void *);
 extern void lnd_init(int, void *);
@@ -505,15 +505,15 @@ extern int planesatxy(coord, coord, int, int, struct emp_qelem *);
 extern int asw_shipsatxy(coord, coord, int, int, struct plnstr *,
                         struct shiplist **);
 extern int num_shipsatxy(coord, coord, int, int);
-extern int islist(s_char *);
+extern int islist(char *);
 /* src/lib/subs/mission.c */
-extern s_char *mission_name(short);
-extern s_char *nameofitem(struct genitem *, int);
+extern char *mission_name(short);
+extern char *nameofitem(struct genitem *, int);
 extern int collateral_damage(coord, coord, int, struct emp_qelem *);
 extern int mission_pln_equip(struct plist *, struct ichrstr *, int,
                             s_char);
-extern int ground_interdict(coord, coord, natid, s_char *);
-extern int unit_interdict(coord, coord, natid, s_char *, int, int);
+extern int ground_interdict(coord, coord, natid, char *);
+extern int unit_interdict(coord, coord, natid, char *, int, int);
 extern int off_support(coord, coord, natid, natid);
 extern int def_support(coord, coord, natid, natid);
 extern int oprange(struct genitem *, int, int *);
@@ -531,14 +531,14 @@ extern int fly_map(coord, coord);
 /* mslsub.c */
 extern int msl_intercept(coord, coord, natid, int, int, int, int);
 extern int msl_equip(struct plnstr *);
-extern int msl_hit(struct plnstr *, int, int, int, int, s_char *,
+extern int msl_hit(struct plnstr *, int, int, int, int, char *,
                   coord, coord, int);
 extern void msl_sel(struct emp_qelem *, coord, coord, natid, int,
                    int, int);
 extern int msl_launch_mindam(struct emp_qelem *, coord, coord, int,
-                            int, int, s_char *, int, int);
+                            int, int, char *, int, int);
 /* mtch.c */
-extern int comtch(register s_char *, struct cmndstr *, int);
+extern int comtch(char *, struct cmndstr *, int);
 /* natarg.c */
 extern struct natstr *natargp(char *, char *);
 extern int natarg(char *, char *);
@@ -559,7 +559,7 @@ extern int nxtitem(struct nstr_item *, void *);
 /* nxtsct.c */
 extern int nxtsct(struct nstr_sect *, struct sctstr *);
 /* plane.c */
-extern s_char *prplane(struct plnstr *);
+extern char *prplane(struct plnstr *);
 extern int pln_postread(int, void *);
 extern int pln_prewrite(int, void *);
 extern void pln_init(int, void *);
@@ -652,9 +652,9 @@ extern void sathead(void);
 extern int sct_postread(int, void *);
 extern int sct_prewrite(int, void *);
 extern void item_prewrite(short *);
-extern int issector(s_char *);
+extern int issector(char *);
 /* ship.c */
-extern s_char *prship(struct shpstr *);
+extern char *prship(struct shpstr *);
 extern int shp_postread(int, void *);
 extern int shp_prewrite(int, void *);
 extern void shp_init(int, void *);
@@ -682,7 +682,7 @@ extern void show_news(int);
 extern void shp_sel(struct nstr_item *, struct emp_qelem *);
 extern void shp_nav(struct emp_qelem *, double *, double *, int *, natid);
 extern int shp_sweep(struct emp_qelem *, int, natid);
-extern s_char *shp_path(int, struct shpstr *, s_char *);
+extern char *shp_path(int, struct shpstr *, char *);
 extern void shp_put(struct emp_qelem *, natid);
 extern void shp_list(struct emp_qelem *);
 extern int shp_check_nav(struct sctstr *, struct shpstr *);
@@ -731,7 +731,7 @@ extern void delete_old_announcements(void);
 /* deliver.c */
 extern void dodeliver(struct sctstr *);
 /* distribute.c */
-extern int dodistribute(struct sctstr *, int, s_char *, double, double);
+extern int dodistribute(struct sctstr *, int, char *, double, double);
 /* finish.c */
 extern void finish_sects(int);
 /* human.c */
index 6aedcfe9faf401f65aa474b4eeb58553b547650e..4b090603e57c58c659140032d2a9bbcbd9c5f2df 100644 (file)
@@ -51,6 +51,6 @@ struct telstr {
     time_t tel_date;           /* when sent */
 };
 
-extern s_char *mailbox(s_char *buf, natid cn);
+extern char *mailbox(char *buf, natid cn);
 
 #endif
index 7330bfd40dd1fbd0e4acd0de8df9a96634cd6808..5739c5bf18e96948660cc45fd0b0ef11ba28ce78 100644 (file)
@@ -66,7 +66,7 @@ union trdgenstr {
 
 extern int trade_check_ok(struct trdstr *, union trdgenstr *);
 extern int trade_check_item_ok(union trdgenstr *);
-extern s_char *trade_nameof(struct trdstr *, union trdgenstr *);
+extern char *trade_nameof(struct trdstr *, union trdgenstr *);
 extern int trade_desc(struct trdstr *, union trdgenstr *);
 extern int trade_getitem(struct trdstr *, union trdgenstr *);
 extern long get_couval(int);
index ef76ef9c1500b2cab651990d97aeea847695d173..69aecb9dc08a2fbcb80ccab07ed146cae4371f46 100644 (file)
@@ -54,14 +54,14 @@ arm(void)
     struct plnstr pl;
     struct plnstr start;       /* Used for sanity checking */
     struct nukstr nuke;
-    s_char *p;
+    char *p;
     int pno;
     int nuketype;
     int found;
     struct nstr_item ni;
-    s_char buf[1024];
+    char buf[1024];
     int disarm = **player->argp == 'd';
-    s_char *prompt = disarm ? "Disarm plane: " : "Arm plane: ";
+    char *prompt = disarm ? "Disarm plane: " : "Arm plane: ";
 
     if (!(p = getstarg(player->argp[1], prompt, buf)) || !*p)
        return RET_SYN;
index d101ffdd86a71a34cceac0418af100bc4f648789..c99f1f95e908a1b108cef6eabfaca09f62ccdc60 100644 (file)
@@ -46,12 +46,12 @@ army(void)
 {
     struct lndstr land;
     int count;
-    s_char *cp;
-    s_char c;
+    char *cp;
+    char c;
     struct nstr_item nstr;
     struct nstr_item ni;
     struct lndstr land2;
-    s_char buf[1024];
+    char buf[1024];
 
     cp = getstarg(player->argp[1], "army? ", buf);
     if (cp == 0)
index 1e77254ba75727785cd9ed18a3f0b2ca46c8297e..325e0b9890d06a17166d99c656d98ffa3c875284 100644 (file)
@@ -60,8 +60,8 @@ assa(void)
     int a_spy = 0;             /* the best assaulter scout */
     double osupport = 1.0;     /* assault support */
     double dsupport = 1.0;     /* defense support */
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
     int n;
     int ourtotal;
     struct emp_qelem *qp, *next;
index f633889cf1321e40a72a753c8a78cfdf542fb534..db7d52523e7c68b882d3bc98e7b5b72d4b6a1eeb 100644 (file)
@@ -65,8 +65,8 @@ atta(void)
     double osupport = 1.0;     /* attack support */
     double dsupport = 1.0;     /* defense support */
     int last, n;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
     int rel;
 
     att_combat_init(def, EF_SECTOR);
index 8c5579e44bea0e76f91c67221a27571c7dd44a66..20186424a686e4aa0e6c7f121669183c0d0dbc35 100644 (file)
 int
 bdes(void)
 {
-    s_char *p, d;
+    char *p, d;
     struct nstr_sect nstr;
     struct sctstr sect;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
     int changed = 0;
 
     if (!snxtsct(&nstr, player->argp[1]))
index 0b4212f4a1083f727035054ba1daf0691bb8c165..2eee317c8a184330ac9b001e3bbb321f0c64b5d0 100644 (file)
@@ -46,10 +46,10 @@ int
 best(void)
 {
     double cost;
-    s_char *s;
+    char *s;
     struct sctstr s1, s2;
     struct nstr_sect nstr, nstr2;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!snxtsct(&nstr, player->argp[1]))
        return RET_SYN;
index c39a9dc174072b7d133cd7a6a498361863ce32ba..08db07e8476f36f32e01e013ac59320a541b6318 100644 (file)
@@ -63,8 +63,8 @@ boar(void)
     struct lndstr land;
     struct nstr_item ni;
     int foundland;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     att_combat_init(def, EF_SHIP);
     /*
index c836bad2fe56ef4d493ed72a696b5e96779e9669..4a2cbf067b4287af57f17148f11ab7374806bb1d 100644 (file)
@@ -86,13 +86,13 @@ static int nbomb = sizeof(bombcomm) / sizeof(*bombcomm);
 int
 bomb(void)
 {
-    s_char *p;
+    char *p;
     int mission_flags;
     coord tx, ty;
     coord ax, ay;
     int ap_to_target;
     struct ichrstr *ip;
-    s_char flightpath[MAX_PATH_LEN];
+    char flightpath[MAX_PATH_LEN];
     struct nstr_item ni_bomb;
     struct nstr_item ni_esc;
     struct sctstr target;
@@ -100,10 +100,10 @@ bomb(void)
     struct emp_qelem esc_list;
     int wantflags;
     struct sctstr ap_sect;
-    s_char mission;
+    char mission;
     int rel;
     struct natstr *natp;
-    s_char buf[1024];
+    char buf[1024];
 
     wantflags = 0;
     if (!snxtitem(&ni_bomb, EF_PLANE, player->argp[1]))
@@ -202,13 +202,13 @@ pin_bomb(struct emp_qelem *list, struct sctstr *target)
     int nships;
     int type;
     int bad;
-    s_char *p;
+    char *p;
     struct plist *plp;
     int nsubs;
     int nunits;
     struct natstr *natp;
     int rel;
-    s_char buf[1024];
+    char buf[1024];
     int i;
 
     bad = 0;
@@ -473,7 +473,7 @@ ship_bomb(struct emp_qelem *list, struct sctstr *target)
     struct plist *plp;
     struct mchrstr *mcp;
     int dam;
-    s_char *q;
+    char *q;
     int n;
     struct emp_qelem *qp;
     int shipno;
@@ -481,8 +481,8 @@ ship_bomb(struct emp_qelem *list, struct sctstr *target)
     struct shpstr ship;
     int nships = 0;
     struct shiplist *head = NULL;
-    s_char buf[1024];
-    s_char prompt[128];
+    char buf[1024];
+    char prompt[128];
     int hitchance;
     int nukedam;
     int flak;
@@ -614,7 +614,7 @@ static void
 plane_bomb(struct emp_qelem *list, struct sctstr *target)
 {
     int dam;
-    s_char *q;
+    char *q;
     int n;
     natid own;
     struct plnstr plane;
@@ -622,8 +622,8 @@ plane_bomb(struct emp_qelem *list, struct sctstr *target)
     int planeno;
     int ignore;
     struct plist *plp;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
     int hitchance;
     int nukedam;
     int nplanes;
@@ -724,11 +724,11 @@ static void
 land_bomb(struct emp_qelem *list, struct sctstr *target)
 {
     int dam;
-    s_char *q;
+    char *q;
     int n;
     natid own;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
     struct lndstr land;
     struct emp_qelem *qp;
     int unitno;
@@ -862,7 +862,7 @@ pinflak_planedamage(struct plnstr *pp, struct plchrstr *pcp, natid from,
                    int flak)
 {
     int disp;
-    s_char dmess[255];
+    char dmess[255];
     int eff;
     struct shpstr ship;
     struct lndstr land;
index 9924704ab062591a6e8daeacee81c66aa6e4f1d6..b95aaa3cfcb4b808407086b5a035f2879d8a9edf 100644 (file)
@@ -86,11 +86,11 @@ buil(void)
     struct mchrstr *mp;
     struct plchrstr *pp;
     struct nchrstr *np;
-    s_char *p;
+    char *p;
     int gotsect = 0;
     int built;
     int number;
-    s_char buf[1024];
+    char buf[1024];
 
     natp = getnatp(player->cnum);
     if ((p =
@@ -221,7 +221,7 @@ buil(void)
        if (player->argp[4]) {
            number = atoi(player->argp[4]);
            if (number > 20) {
-               s_char bstr[80];
+               char bstr[80];
                sprintf(bstr,
                        "Are you sure that you want to build %s of them? ",
                        player->argp[4]);
@@ -536,8 +536,8 @@ build_bridge(struct sctstr *sp, short *vec)
     int newx, newy;
     int avail;
     int nx, ny, i, good = 0;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     if (opt_EASY_BRIDGES == 0) {       /* must have a bridge head or tower */
        if (sp->sct_type != SCT_BTOWER) {
@@ -801,8 +801,8 @@ build_tower(struct sctstr *sp, short *vec)
     int val;
     int newx, newy;
     int avail;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
     int good;
     int i;
     int nx;
index bc33836ccab03b74ec6fc2f8770ccde7b13f7400..d2962b6905f65e0a7cdba7162eccb96eb87d9d0a 100644 (file)
@@ -75,7 +75,7 @@ buy(void)
     time_t now;
     double tally;
     double canspend;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!opt_MARKET) {
        pr("The market is disabled.\n");
index fd218db598f1cdabcfdadd87b82f3fd2d9eef21c..18e16f96a774297024a5a82e496f47c1fb71e583 100644 (file)
@@ -61,11 +61,11 @@ cede(void)
     natid to;
     int n;
     int is_sector = 0, is_ship = 0;
-    s_char *p;
+    char *p;
     struct nstr_sect ns;
     struct nstr_item ni;
     struct natstr *natp;
-    s_char buf[1024];
+    char buf[1024];
 
     if ((p = getstarg(player->argp[1], "Cede what? ", buf)) == 0)
        return RET_SYN;
index fc36a4bb696ec978d5a1115e4753754dd12213e5..f1eb26c9b6c79c496fcd53710783db404f5e4e2d 100644 (file)
 int
 chan(void)
 {
-    s_char *temp;
+    char *temp;
     struct natstr *natp;
-    register s_char *p;
+    char *p;
     natid cn;
     int charge;
     int nonb;
     int btucost;
-    s_char buf[1024];
+    char buf[1024];
     struct natstr *us;
 
     if ((p =
index 54de5b63f1459638cad46275057c2fdd7babe904..762994c36a039459c09eac5ca420ed82fbf3c716 100644 (file)
@@ -48,7 +48,7 @@ int
 comm(void)
 {
     struct sctstr sect;
-    s_char dirstr[12];
+    char dirstr[12];
     int nsect;
     int n;
     struct nstr_sect nstr;
index 4d364c855b73f8d1f5ccb74ef778659affbb9ca4..f20e8e890930125185abf1ba7696303ee2a1e04a 100644 (file)
@@ -51,8 +51,8 @@
 struct ltcomstr {
     int type;                  /* EF_LOAN or EF_TREATY */
     int num;                   /* number */
-    s_char *name;              /* "loan" or "treaty" */
-    s_char *Name;              /* "Loan" or "Treaty" */
+    char *name;                        /* "loan" or "treaty" */
+    char *Name;                        /* "Loan" or "Treaty" */
     natid proposer;            /* country offering */
     natid proposee;            /* country offered to */
     natid mailee;              /* who gets mail about it */
@@ -113,11 +113,11 @@ static int
 cons_choose(struct ltcomstr *ltcp)
 {
     static int lon_or_trt[] = { EF_LOAN, EF_TREATY, EF_BAD };
-    s_char *p;
+    char *p;
     struct lonstr *lp;
     struct trtstr *tp;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
 
     memset(ltcp, 0, sizeof(*ltcp));
     if (getstarg(player->argp[1], "loan or treaty? ", buf) == 0)
index 73930dbc5566f26889e4307f555090520f9d368f..1d74fbba089041efe569c1ea6b04162a4e71e028 100644 (file)
@@ -49,7 +49,7 @@ cuto(void)
     int nsect;
     int n;
     struct nstr_sect nstr;
-    s_char dirstr[12];
+    char dirstr[12];
 
     if (!snxtsct(&nstr, player->argp[1]))
        return RET_SYN;
index e438a85a612732f5cd5ae4bade9ff15c741b96de..266603b739373d87902d246a564e40e15e02cf36 100644 (file)
@@ -49,8 +49,8 @@ decl(void)
     int rel;
     int who;
     struct nstr_item ni;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     if (!(p = getstarg(player->argp[1],
                       "alliance, friendly, neutrality, hostility, or war? ",
index fd1f86045cf958175d88d4dbf9ecfc7a0fa9ccd8..2034ebcd31278b92b329fd43387c5bf025ffd6cc 100644 (file)
@@ -53,9 +53,9 @@ deli(void)
     int thresh;
     int sx, sy;
     struct nstr_sect nstr;
-    s_char buf[1024];
-    s_char prompt[128];
-    s_char *p;
+    char buf[1024];
+    char prompt[128];
+    char *p;
 
     if ((ich = whatitem(player->argp[1], "deliver what? ")) == 0)
        return RET_SYN;
index 91779c18e6bed1e0f1cfe88d9df4815ea1178c9c..9dad2930af05cf937c96411173332de2570833f4 100644 (file)
@@ -48,7 +48,7 @@
  */
 
 static long do_demo(struct natstr *natp, struct nstr_sect nstr, int number,
-                   s_char *p, int for_real);
+                   char *p, int for_real);
 
 int
 demo(void)
@@ -57,8 +57,8 @@ demo(void)
     long cash;
     long cost;
     int number;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
     struct nstr_sect nstr;
 
     natp = getnatp(player->cnum);
@@ -80,7 +80,7 @@ demo(void)
 }
 
 static long
-do_demo(struct natstr *natp, struct nstr_sect nstr, int number, s_char *p,
+do_demo(struct natstr *natp, struct nstr_sect nstr, int number, char *p,
        int for_real)
 {
     struct sctstr sect;
index 2f25e54ee2fa79768c63e7bf8f89caa708ebe7ed..8a201552eb7fb50438cd68a23a44ca29e22cbcc7 100644 (file)
@@ -44,7 +44,7 @@
 #include "optlist.h"
 #include "commands.h"
 
-static long do_desi(struct natstr *natp, s_char *sects, s_char *deschar,
+static long do_desi(struct natstr *natp, char *sects, char *deschar,
                    long int cash, int for_real);
 
 int
@@ -67,11 +67,11 @@ desi(void)
 }
 
 static long
-do_desi(struct natstr *natp, s_char *sects, s_char *deschar, long int cash,
+do_desi(struct natstr *natp, char *sects, char *deschar, long int cash,
        int for_real)
 {
     int n;
-    s_char *p;
+    char *p;
     int breaksanct;
     int cap_x;
     int cap_y;
@@ -79,8 +79,8 @@ do_desi(struct natstr *natp, s_char *sects, s_char *deschar, long int cash,
     struct nstr_sect nstr;
     struct sctstr sect;
     struct sctstr check;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
     long cost = 0;
     int changed = 0;
     int warned = 0;
index c4c68131152493e6887b3e76e57ceafcfbf8397d..65560e4bc6d58f94dea3858fe400bd93e496c087 100644 (file)
@@ -53,10 +53,10 @@ dist(void)
 {
     struct sctstr sect, dsect, tsect;
     struct nstr_sect nstr;
-    s_char *path, *p;
+    char *path, *p;
     double move_cost = 0.0;
     coord dstx, dsty;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!snxtsct(&nstr, player->argp[1]))
        return RET_SYN;
index 924a11ae7a00529e63d91ef22418aed19eee7dd8..2ade523e994851b3fc47c779b048cd95c5a42d22 100644 (file)
@@ -54,7 +54,7 @@ drop(void)
     coord ax, ay;
     int ap_to_target;
     struct ichrstr *ip;
-    s_char flightpath[MAX_PATH_LEN];
+    char flightpath[MAX_PATH_LEN];
     struct nstr_item ni_bomb;
     struct nstr_item ni_esc;
     struct sctstr target;
@@ -62,7 +62,7 @@ drop(void)
     struct emp_qelem esc_list;
     int wantflags;
     struct sctstr ap_sect;
-    s_char buf[1024];
+    char buf[1024];
 
     wantflags = 0;
     if (!snxtitem(&ni_bomb, EF_PLANE, player->argp[1]))
index d35bbdacec994e3196ca0c096fbb6038bfa70c72..f36b2d2076adab017ab66cdc80cda074ed5ff90b 100644 (file)
@@ -49,7 +49,7 @@ int
 dump(void)
 {
     struct sctstr sect;
-    s_char dirstr[20];
+    char dirstr[20];
     int nsect;
     int n, i;
     struct nstr_sect nstr;
index df89f2899b22642b80abe578468af698a32e829e..ca3a73a4162c82251b774f14539f70a84264236b 100644 (file)
@@ -55,10 +55,10 @@ enli(void)
     int milwant;
     int totalmil;
     long reserve;
-    s_char *p;
+    char *p;
     int quota;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
 
     if (!snxtsct(&nstr, player->argp[1]))
        return RET_SYN;
index eff890e3dd73cc57ba8779dabd6ee748087a31ed..50ea41db535b62e3bde4157760f8da10db87ec7c 100644 (file)
@@ -46,12 +46,12 @@ flee(void)
 {
     struct shpstr ship;
     int count;
-    s_char *cp;
-    s_char c;
+    char *cp;
+    char c;
     struct nstr_item nstr;
     struct nstr_item ni;
     struct shpstr ship2;
-    s_char buf[1024];
+    char buf[1024];
 
     cp = getstarg(player->argp[1], "fleet? ", buf);
     if (cp == 0)
index a7e0db4010d6bb841d54132682827f756ac0110b..d5f1b72e01f7e58c0542230ca16b0e742b834626 100644 (file)
@@ -55,7 +55,7 @@ fly(void)
     coord ax, ay;
     int ap_to_target;
     struct ichrstr *ip;
-    s_char flightpath[MAX_PATH_LEN];
+    char flightpath[MAX_PATH_LEN];
     struct shpstr ship;
     int cno;
     struct nstr_item ni_bomb;
@@ -67,7 +67,7 @@ fly(void)
     struct sctstr ap_sect;
     int dst_type;
     s_char *dst_ptr;
-    s_char buf[1024];
+    char buf[1024];
 
     wantflags = 0;
     if (!snxtitem(&ni_bomb, EF_PLANE, player->argp[1]))
index 16b5f03ca9f15ed403aad3387e925fd2ab732e43..df60a181e2330713e1575bf2d745990a8dac032e 100644 (file)
@@ -48,11 +48,11 @@ int
 foll(void)
 {
     struct shpstr ship;
-    s_char *cp;
+    char *cp;
     int good, leader, count = 0;
     coord x, y;
     struct nstr_item nstr;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!opt_SAIL) {
        pr("The SAIL option is not enabled, so this command is not valid.\n");
index 732f15bc404ca02d2a8b16d2f38ee757b14b3c74..d15ea1e5ea2c7fbc29e99d5ac29e1b18049572cb 100644 (file)
@@ -48,8 +48,8 @@ fort(void)
     struct nstr_item ni;
     struct lndstr land;
     int fort_amt, hard_amt;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     if (!snxtitem(&ni, EF_LAND, player->argp[1]))
        return RET_SYN;
index dc5336b2faa3de70531a25fab53d2518c480a84b..1917e1dc1d7924900a4931a8b56754c612b5c308 100644 (file)
@@ -62,7 +62,7 @@ fuel(void)
     int type;
     struct mchrstr *mp;
     struct lchrstr *lcp;
-    s_char *p;
+    char *p;
     int fueled;
     int land_fuel, ship_fuel;
     int oil_amt, pet_amt, fuel_amt, tot_fuel, max_amt;
@@ -73,8 +73,8 @@ fuel(void)
     int harbor, sector;
     int fuelled_ship = -1;
     struct nstr_item tender, ltender;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
 
     if (opt_FUEL == 0) {
        pr("Option 'FUEL' not enabled\n");
index cc9b4b366dc91763da312aaa6567f31b482918ae..94b0a63ca35d976fac5946ee47f00441fad22c51 100644 (file)
@@ -56,9 +56,9 @@ give(void)
     int amt;
     struct ichrstr *ip;
     int m, n;
-    s_char *p;
+    char *p;
     struct nstr_sect nstr;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!(ip = whatitem(player->argp[1], "which commodity? ")))
        return RET_SYN;
index f9e508297f550592c4de8536cb7fdebd43566a52..a2d44c72b6d5f8e6c31aace522128ddea4f4a463 100644 (file)
@@ -48,10 +48,10 @@ grin(void)
 {
     struct nstr_sect nstr;
     struct sctstr sect;
-    s_char *p;
+    char *p;
     int i, n, qty;
     int avail;
-    s_char buf[1024];
+    char buf[1024];
     double grind_eff = 0.8;
 
     if ((p = getstarg(player->argp[1], "Sectors? ", buf)) == 0)
index 12ce0270a593e5d9efed4e5d67e1f24688cf7e2b..da69a5477c47b0f5d698ce844dee6fda4d2bf481 100644 (file)
@@ -54,12 +54,12 @@ hard(void)
     struct plchrstr *pcp;
     struct plnstr pln;
     int level;
-    s_char *p;
+    char *p;
     int hcm;
     int n;
     struct nstr_item ni;
     struct sctstr sect;
-    s_char buf[1024];
+    char buf[1024];
     long cash;
     struct natstr *natp;
 
index 9e9d467512dfa95e87b28b2ab5e89783c4dba1cf..9a8ad28d6fd7287e6b8ca2b47b0a61ad64dddb44 100644 (file)
@@ -56,9 +56,9 @@ improve(void)
     struct sctstr sect;
     int nsect;
     struct nstr_sect nstr;
-    s_char *p;
-    s_char buf[1024];
-    s_char inbuf[128];
+    char *p;
+    char buf[1024];
+    char inbuf[128];
     int type;
     int value;
     int ovalue;
index 25887535741fd956fc715d43623238a61f25a08b..f62ee0aee664af0b93faff779a94a648e2acf8fb 100644 (file)
 #include "commands.h"
 #include "optlist.h"
 
-static s_char *
-lowerit(s_char *buf, int n, s_char *orig)
+static char *
+lowerit(char *buf, int n, char *orig)
 {                              /* converts a string to lower case */
     /* lower case output buffer */
     /* size of output buffer */
     /* input strig */
     int i;
-    s_char *tmp;
+    char *tmp;
     tmp = buf;
     memset(buf, 0, n);
     for (i = 0; i < n && *orig; i++) {
@@ -73,14 +73,14 @@ lowerit(s_char *buf, int n, s_char *orig)
 int
 info(void)
 {
-    s_char buf[255];
+    char buf[255];
     FILE *fp;
-    s_char *name;
-    s_char *tmp_name;
+    char *name;
+    char *tmp_name;
     struct stat statb;
     struct dirent *dp;
-    s_char filename[1024];
-    s_char last[256];
+    char filename[1024];
+    char last[256];
     DIR *info_dp;
     int nmatch = 0;
     int width = 0;
@@ -172,11 +172,11 @@ int
 apro(void)
 {
     FILE *fp;
-    s_char *name, *lbp;
-    s_char *fbuf;
-    s_char *lbuf;
+    char *name, *lbp;
+    char *fbuf;
+    char *lbuf;
     struct dirent *dp;
-    s_char filename[1024];
+    char filename[1024];
     DIR *info_dp;
     long nf, nhf, nl, nlhl, nhl, nll;
     int alreadyhit;
@@ -277,17 +277,17 @@ apro(void)
     return RET_OK;
 }
 
-#else
+#else  /* _WIN32 */
 
 int
 info(void)
 {
-    s_char buf[255];
+    char buf[255];
     FILE *fp;
-    s_char *name;
-    s_char *tmp_name;
-    s_char filename[1024];
-    s_char last[256];
+    char *name;
+    char *tmp_name;
+    char filename[1024];
+    char last[256];
     int nmatch = 0;
     int width = 0;
     char sep;
@@ -402,10 +402,10 @@ apro(void)
     HANDLE hDir;
     WIN32_FIND_DATA fData;
     FILE *fp;
-    s_char *name, *lbp;
-    s_char *fbuf;
-    s_char *lbuf;
-    s_char filename[1024];
+    char *name, *lbp;
+    char *fbuf;
+    char *lbuf;
+    char filename[1024];
     long nf, nhf, nl, nlhl, nhl, nll;
     int alreadyhit;
     int lhitlim;
@@ -504,4 +504,4 @@ apro(void)
     return RET_OK;
 }
 
-#endif
+#endif /* _WIN32 */
index 50674552255b6a57233681a497d3a2083294c540..3bba721b2eaad2299d4fa844d039d5b5fa02641c 100644 (file)
@@ -177,7 +177,7 @@ static int
 launch_as(struct plnstr *pp)
 {
     coord sx, sy;
-    s_char *cp, buf[1024];
+    char *cp, buf[1024];
     struct plnstr plane;
     struct nstr_item ni;
     int goodtarget;
@@ -243,14 +243,14 @@ launch_missile(struct plnstr *pp, int sublaunch)
     struct plchrstr *pcp = plchr + pp->pln_type;
     coord sx, sy;
     int n, dam;
-    s_char *cp;
+    char *cp;
     struct mchrstr *mcp;
     struct shpstr target_ship;
     struct sctstr sect;
     int nukedam;
     int rel;
     struct natstr *natp;
-    s_char buf[1024];
+    char buf[1024];
 
     if (pcp->pl_flags & P_MAR)
        cp = getstarg(player->argp[2], "Target ship? ", buf);
@@ -380,9 +380,9 @@ launch_sat(struct plnstr *pp, int sublaunch)
     int i;
     int dist;
     int dir;
-    s_char *cp;
-    s_char *p;
-    s_char buf[1024];
+    char *cp;
+    char *p;
+    char buf[1024];
 
     pr("\n");
     cp = getstarg(player->argp[2], "Target sector? ", buf);
index 12efbc56b3c979125ccbad79f617b74f906abc19..03ed71c4c3a235572d2fad5f5a57b2f6f3238f0a 100644 (file)
@@ -59,8 +59,8 @@ lboa(void)
     int a_spy = 0;             /* the best boarder scout */
     struct sctstr sect;
     struct lndstr land;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     att_combat_init(def, EF_LAND);
     /*
index 6f0cc235c7f39db504328e3b98213d7d7656cecf..82cbdb7a68391ea4e1d6a88007e5121f590484d3 100644 (file)
@@ -84,8 +84,8 @@ load(void)
     struct sctstr sect;
     struct shpstr ship;
     int retval;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     if (!(p = getstarg(player->argp[1],
                       "What commodity (or 'plane' or 'land')? ", buf))
@@ -223,8 +223,8 @@ lload(void)
     struct sctstr sect;
     struct lndstr land;
     int retval;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     if (!(p = getstarg(player->argp[1],
                       "What commodity (or 'plane' or 'land')? ", buf))
@@ -371,9 +371,9 @@ load_plane_ship(struct sctstr *sectp, struct shpstr *sp, int noisy,
     struct nstr_item ni;
     struct plnstr pln;
     int loaded = 0;
-    s_char buf[1024];
-    s_char *p;
-    s_char prompt[512];
+    char buf[1024];
+    char *p;
+    char prompt[512];
     struct mchrstr *mcp = mchr + sp->shp_type;
 
     if (!(mcp->m_flags & (M_CHOPPER | M_XLIGHT | M_FLY | M_MSL))) {
@@ -504,9 +504,9 @@ load_land_ship(struct sctstr *sectp, struct shpstr *sp, int noisy,
     struct lndstr land;
     struct plnstr plane;
     int loaded = 0;
-    s_char *p;
-    s_char prompt[512];
-    s_char buf[1024];
+    char *p;
+    char prompt[512];
+    char buf[1024];
     int load_spy = 0;
 
     count_units(sp);
@@ -724,9 +724,9 @@ load_comm_ship(struct sctstr *sectp, struct shpstr *sp,
     struct mchrstr *mcp = &mchr[(int)sp->shp_type];
     int ship_amt, ship_max, sect_amt, move_amt;
     int amount;
-    s_char prompt[512];
-    s_char *p;
-    s_char buf[1024];
+    char prompt[512];
+    char *p;
+    char buf[1024];
 
     sprintf(prompt, "Number of %s to %s %s at %s? ",
            ich->i_name,
@@ -801,9 +801,9 @@ load_plane_land(struct sctstr *sectp, struct lndstr *lp, int noisy,
     struct nstr_item ni;
     struct plnstr pln;
     int loaded = 0;
-    s_char *p;
-    s_char prompt[512];
-    s_char buf[1024];
+    char *p;
+    char prompt[512];
+    char buf[1024];
 
     if (!lp->lnd_maxlight) {
        if (noisy)
@@ -917,9 +917,9 @@ load_comm_land(struct sctstr *sectp, struct lndstr *lp,
     struct lchrstr *lcp = &lchr[(int)lp->lnd_type];
     int land_amt, land_max, sect_amt, move_amt;
     int amount;
-    s_char prompt[512];
-    s_char *p;
-    s_char buf[1024];
+    char prompt[512];
+    char *p;
+    char buf[1024];
 
     sprintf(prompt, "Number of %s to %s %s at %s? ",
            ich->i_name,
@@ -999,9 +999,9 @@ load_land_land(struct sctstr *sectp, struct lndstr *lp, int noisy,
     struct lndstr land;
     struct plnstr plane;
     int loaded = 0;
-    s_char *p;
-    s_char prompt[512];
-    s_char buf[1024];
+    char *p;
+    char prompt[512];
+    char buf[1024];
 
     lnd_count_units(lp);
 
index 7e338e17cd61a7ccd4c7f516d1bf3930eee7ee67..2dd641b49b9bf57ee620525bc74555ea8d9e5c84 100644 (file)
@@ -67,8 +67,8 @@ ltend(void)
     int maxtarget;
     int transfer;
     int total;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     if (!(ip = whatitem(player->argp[1], "Transfer what commodity? ")))
        return RET_SYN;
index d88ff1dc19e5ffcf38e52c35614137e3845fbcca..7f0505b40c76e9ed91ca389652c27b508a190ca9 100644 (file)
@@ -49,7 +49,7 @@
 int
 map(void)
 {
-    register s_char *b;
+    char *b;
     int unit_type = 0;
     int bmap = 0;
     struct nstr_sect ns;
index ac023153b54dc85f6cf30f2455847b45537fa754..41bc9fc897d302b6d1e3d846e12837a855309d64 100644 (file)
@@ -54,15 +54,15 @@ march(void)
     struct emp_qelem land_list;
     double minmob, maxmob;
     int together;
-    s_char *cp = 0;
+    char *cp = 0;
     struct lndstr *lnd = 0;    /* leader */
     struct nstr_sect ns;
     s_char origin;
     int dir;
     int stopping = 0;
     int skip = 0;
-    s_char buf[1024];
-    s_char prompt[128];
+    char buf[1024];
+    char prompt[128];
 
     if (!snxtitem(&ni_land, EF_LAND, player->argp[1]))
        return RET_SYN;
index 8d83fc0f8c7ae5e2fd425ae12e8e15d4a09dbdce..db0466508771c565c8beb6025c436d21cd10438b 100644 (file)
@@ -88,8 +88,8 @@ int
 multifire(void)
 {
     static int ef_with_guns[] = { EF_SECTOR, EF_SHIP, EF_LAND, EF_BAD };
-    s_char vbuf[20];
-    s_char *ptr;
+    char vbuf[20];
+    char *ptr;
     double range2, range;
     int trange;
     coord fx;
@@ -117,13 +117,13 @@ multifire(void)
     struct natstr *natp;
     struct nstr_item nbst;
     int type;
-    s_char *p;
+    char *p;
     int nfiring = 0;
     int ndefending = 0;
     union item_u item;
     struct emp_qelem fired, defended;
     double odds;
-    s_char buf[1024];
+    char buf[1024];
 
     emp_initque(&fired);
     emp_initque(&defended);
index 1f1302219f6c4c3a1c43e67d240ca456eacddbd9..d67f12fb4ddf5a117f62678f15b1250711d80b62 100644 (file)
@@ -105,7 +105,7 @@ landmine(void)
     int mines_wanted;
     int mines_laid;
     int total_mines_laid;
-    s_char prompt[128];
+    char prompt[128];
 
     if (!snxtitem(&ni, EF_LAND, player->argp[1]))
        return RET_SYN;
index 623bd178f71924ef86c8f79190063c4d0a627e9e..7eae1da1c77e004211b2c8cef971664915e3224f 100644 (file)
@@ -48,10 +48,10 @@ int
 mobq(void)
 {
     struct shpstr ship;
-    s_char *cp, *oldmq;
+    char *cp, *oldmq;
     int good, mobquota, count = 0;
     struct nstr_item nstr;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!opt_SAIL) {
        pr("The SAIL option is not enabled, so this command is not valid.\n");
index 09271a7b3331c1739242e4ff1d4b3228bb5f90b5..c4831d4b8d3602a5de68c20b655634f754462474 100644 (file)
@@ -50,9 +50,9 @@ morale(void)
     struct lndstr land;
     struct natstr *natp;
     int i, min;
-    s_char *p;
-    s_char mess[128];
-    s_char buf[1024];
+    char *p;
+    char mess[128];
+    char buf[1024];
 
     if (!snxtitem(&np, EF_LAND, player->argp[1]))
        return RET_SYN;
index 8fde5cf72398d9030a768885145f47607ca2ce52..2cff13f6caf4275f59ef22b4b808d2492598ca4b 100644 (file)
@@ -49,9 +49,9 @@ int
 name(void)
 {
     struct shpstr ship;
-    s_char *p;
+    char *p;
     struct nstr_item nb;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!snxtitem(&nb, EF_SHIP, player->argp[1]))
        return RET_SYN;
index 7a14c9563e03a4aa87ec052c41680a5934b2a34f..ad7de0638abce71a40959aaae041e9df0bd2bfcd 100644 (file)
@@ -56,17 +56,17 @@ navi(void)
     struct emp_qelem ship_list;
     double minmob, maxmob;
     int together;
-    s_char *cp = 0;
+    char *cp = 0;
     struct shpstr *shp = 0;    /* flagship */
     struct nstr_sect ns;
     s_char origin;
     int dir;
     int stopping = 0;
     int skip = 0;
-    s_char buf[1024];
-    s_char prompt[128];
-    s_char pathtaken[1024];    /* Doubtful we'll have a path longer than this */
-    s_char *pt = pathtaken;
+    char buf[1024];
+    char prompt[128];
+    char pathtaken[1024];      /* Doubtful we'll have a path longer than this */
+    char *pt = pathtaken;
 
     if (!snxtitem(&ni_ship, EF_SHIP, player->argp[1]))
        return RET_SYN;
index 6106a8a56147f1ac07d757d0c9faf03b75a18da8..5444193bb7220aeb594bcbc4562baf26d0ab78e4 100644 (file)
@@ -64,8 +64,8 @@ news(void)
     short k;
     int sectors_were_taken = 0;
     natid i, j;
-    s_char num[128];
-    s_char *verb;
+    char num[128];
+    char *verb;
 
     if (!snxtitem(&nstr, EF_NEWS, "*"))
        return RET_SYN;
@@ -176,11 +176,11 @@ news(void)
 static void
 preport(register struct nwsstr *np)
 {
-    register s_char *cp;
+    char *cp;
     register int i;
-    s_char buf[255];
-    s_char num[128];
-    s_char *ptr;
+    char buf[255];
+    char num[128];
+    char *ptr;
 
     cp = buf;
     sprintf(buf, "%-16.16s  ", ctime(&np->nws_when));
index df945229fe1f41dbf32356b956a689b3bd5b6f00..3c804ca082506ed2e565c421738b6a45c62b2a71 100644 (file)
@@ -51,8 +51,8 @@ static int do_loan(void);
 int
 offe(void)
 {
-    register s_char *cp;
-    s_char buf[1024];
+    char *cp;
+    char buf[1024];
 
     if (!(cp = getstarg(player->argp[1], "loan or treaty? ", buf)) || !*cp)
        return RET_SYN;
@@ -79,7 +79,7 @@ offe(void)
 static int
 do_treaty(void)
 {
-    register s_char *cp;
+    char *cp;
     register int ourcond;
     register int theircond;
     register int j;
@@ -90,8 +90,8 @@ do_treaty(void)
     time_t now;
     int n;
     struct natstr *natp;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
 
     if ((n = natarg(player->argp[2], "Treaty offered to? ")) < 0)
        return RET_SYN;
@@ -169,7 +169,7 @@ do_loan(void)
     struct lonstr loan;
     natid recipient;
     int n;
-    s_char prompt[128];
+    char prompt[128];
 
     if ((n = natarg(player->argp[2], "Lend to? ")) < 0)
        return RET_SYN;
index 3b6706a84679a9b2fd2fcd740c6ec9ef587eb5fe..9bf9ce0895dca79cdd297ffb16f1cd5a71f66ec1 100644 (file)
@@ -78,10 +78,10 @@ orde(void)
     struct ichrstr *i1;
     coord p0x, p0y, p1x, p1y;
     int i;
-    s_char *p, *p1, *dest;
-    s_char buf1[128];
-    s_char buf[1024];
-    s_char prompt[128];
+    char *p, *p1, *dest;
+    char buf1[128];
+    char buf[1024];
+    char prompt[128];
 
     if (!snxtitem(&nb, EF_SHIP, player->argp[1]))
        return RET_SYN;
@@ -322,7 +322,7 @@ orde(void)
 }
 
 static void
-eta_calc(struct shpstr *sp, s_char *path, int *len, int *nupdates)
+eta_calc(struct shpstr *sp, char *path, int *len, int *nupdates)
 {
     double mobcost, mobil;
     int i;
@@ -423,10 +423,10 @@ sorde(void)
 {
     int nships = 0;
     int len, updates;
-    s_char *c;
+    char *c;
     struct nstr_item nb;
     struct shpstr ship;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!snxtitem(&nb, EF_SHIP, player->argp[1]))
        return RET_SYN;
index ca379706a8a053ef32ef0193c7fc78bcefb4f2a1..4c0c7e52a8fb04b8375d0a62dc0c65b787e43be9 100644 (file)
@@ -45,9 +45,9 @@
 int
 orig(void)
 {
-    s_char *p;
+    char *p;
     coord x, y;
-    s_char buf[1024];
+    char buf[1024];
     natid cnum;
     struct natstr *np;
 
index 58b2b193b900fa464ca0e9ad18839f429db06521..3ebbf3bb36ff48219a701a2a4557fbcde406218e 100644 (file)
@@ -59,7 +59,7 @@ para(void)
     coord tx, ty;
     coord ax, ay;
     int ap_to_target;
-    s_char flightpath[MAX_PATH_LEN];
+    char flightpath[MAX_PATH_LEN];
     struct nstr_item ni_bomb;
     struct nstr_item ni_esc;
     struct sctstr target;
@@ -67,7 +67,7 @@ para(void)
     struct emp_qelem esc_list;
     int wantflags;
     struct sctstr ap_sect;
-    s_char buf[1024];
+    char buf[1024];
 
     wantflags = P_P;
     if (!snxtitem(&ni_bomb, EF_PLANE, player->argp[1]))
index 2aeda497547d034527fc761df481084f096f381e..61818ee76d69b26fda6e345e0cc1926cca534b8a 100644 (file)
@@ -58,13 +58,13 @@ path(void)
     coord cx, cy;
     int i;
     int y;
-    s_char *pp, *p;
+    char *pp, *p;
     /* Note this is not re-entrant anyway, so we keep the buffers
        around */
-    static s_char *mapbuf = NULL;
-    static s_char **map = NULL;
+    static char *mapbuf = NULL;
+    static char **map = NULL;
     double move_cost;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!(p = getstarg(player->argp[1], "from sector : ", buf)) ||
        !sarg_xy(p, &cx, &cy) || !getsect(cx, cy, &sect))
index de86bec6a09a2683bb60df658d08675f6372620c..bca1ddbd64eb49ce87e75274fad98487782355b9 100644 (file)
@@ -80,7 +80,7 @@ powe(void)
     int use_targets = 0;
     int got_targets = 0;
     int no_numbers = 0;
-    s_char *p;
+    char *p;
 
     memset(targets, 0, sizeof(targets));
     natp = getnatp(player->cnum);
index d94b002a51b8b69c4767d54993d7f5b6fcea4fd1..fbfd4d2ce26473ded9daff5ef87376f09fba74c5 100644 (file)
@@ -49,7 +49,7 @@
 int
 rada(void)
 {
-    s_char *cp;
+    char *cp;
     double tf;
     double tech;
     struct nstr_item ni;
@@ -58,7 +58,7 @@ rada(void)
     struct lndstr land;
     struct sctstr sect;
     int from_unit;
-    s_char buf[1024];
+    char buf[1024];
 
     from_unit = (**player->argp == 'l');
 
index f50a8d0d3be9d2223245a427202455efc0db4d5f..702be1c6f396bb573fb92fb2e6182854e5df4fe0 100644 (file)
@@ -47,8 +47,8 @@ range(void)
     struct nstr_item np;
     struct plnstr plane;
     int i;
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     if (!snxtitem(&np, EF_PLANE, player->argp[1]))
        return RET_SYN;
index 8dcb61b81ffe64edd6e34591aee0bfa3b59d594b..392cf7ae4b6858de1edf9a7f952e58c766713a13 100644 (file)
 int
 rea(void)
 {
-    static s_char *telnames[] = {
+    static char *telnames[] = {
        /* must follow TEL_ defines in tel.h */
        "Telegram", "Announcement", "BULLETIN", "Production Report"
     };
-    register s_char *p;
-    register s_char *mbox;
-    s_char mbox_buf[256];      /* Maximum path length */
+    char *p;
+    char *mbox;
+    char mbox_buf[256];                /* Maximum path length */
     struct telstr tgm;
     FILE *telfp;
     int teles;
@@ -72,7 +72,7 @@ rea(void)
     time_t lastdate;
     int header;
     int filelen;
-    s_char kind[80];
+    char kind[80];
     int n;
     int num = player->cnum;
     struct natstr *np = getnatp(player->cnum);
index 6aed692c3cb1fd90a08429612d81681653891e14..612b8c03e828bf9ffd3637e41ee14bc8ff6ce352 100644 (file)
@@ -52,7 +52,7 @@ reco(void)
     coord tx, ty;
     coord ax, ay;
     int ap_to_target;
-    s_char flightpath[MAX_PATH_LEN];
+    char flightpath[MAX_PATH_LEN];
     int cno;
     struct nstr_item ni_bomb;
     struct nstr_item ni_esc;
@@ -61,7 +61,7 @@ reco(void)
     struct emp_qelem esc_list;
     int wantflags;
     struct sctstr ap_sect;
-    s_char buf[1024];
+    char buf[1024];
 
     wantflags = 0;
     if (!snxtitem(&ni_bomb, EF_PLANE, player->argp[1]))
index 9fda3b7124da4758cd818d4a4d26a07324178c10..619a887e4d4146897ea74f30af0e1232fcf35f83 100644 (file)
 int
 reje(void)
 {
-    register s_char *p;
+    char *p;
     int rel;
     int do_undo;
     struct natstr nat;
     struct nstr_item ni;
-    s_char buf[1024];
+    char buf[1024];
 
     if ((p = getstarg(player->argp[1], "reject or accept? ", buf)) == 0)
        return RET_SYN;
index 9c7834e6fa0845fb639cb5d303e7855ba334bcb9..a41f2cbfb366445a03692d7fd57c1ec3cc0ca6c4 100644 (file)
@@ -60,7 +60,7 @@ rese(void)
     char *p;
     float price;
     time_t now;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!opt_MARKET) {
        pr("The market is disabled.\n");
index dc617e2de54a5eec3bf9cb31e55e519dca6e4988..83d1029c9d3e796ecb87c8f8c2b85a754005f4a6 100644 (file)
@@ -47,7 +47,7 @@
 int
 retr(void)
 {
-    s_char *pq, *fl;
+    char *pq, *fl;
     int nships;
     struct nstr_item ni;
     struct shpstr ship;
@@ -55,8 +55,8 @@ retr(void)
     int rflags = -2;
     int zero;
     unsigned int x;
-    s_char buf1[1024];
-    s_char buf2[1024];
+    char buf1[1024];
+    char buf2[1024];
 
     if (!snxtitem(&ni, EF_SHIP, player->argp[1]))
        return RET_SYN;
@@ -195,15 +195,15 @@ retr(void)
 int
 lretr(void)
 {
-    s_char *pq, *fl;
+    char *pq, *fl;
     int nunits;
     struct nstr_item ni;
     struct lndstr land;
     int isarmy = 0;
     int rflags = -2;
     int zero;
-    s_char buf1[1024];
-    s_char buf2[1024];
+    char buf1[1024];
+    char buf2[1024];
     unsigned int x;
 
     if (!snxtitem(&ni, EF_LAND, player->argp[1]))
index 3156056da3e3b9809de62aa27f58a2a82415ad7b..0e06bbbfdb71805e3d3f6c144e0d54c798cb1bc3 100644 (file)
@@ -61,12 +61,12 @@ rout(void)
     int ry;
     i_type i_del;
     int dir;
-    s_char *p;
+    char *p;
     /* Note this is not re-entrant anyway, so we keep the buffers
        around */
-    static s_char *mapbuf = NULL;
-    static s_char **map = NULL;
-    static s_char *buf = NULL;
+    static char *mapbuf = NULL;
+    static char **map = NULL;
+    static char *buf = NULL;
     int i;
 
     if ((ip = whatitem(player->argp[1], "What item? ")) == 0)
index 1d97d36f81e257ea91dc0ffb8d50d0d15f693295..9cdba96d4224722fb5206d5fb6ded9600791b403 100644 (file)
@@ -62,14 +62,14 @@ scra(void)
     struct mchrstr *mp;
     struct plchrstr *pp;
     struct lchrstr *lp;
-    s_char *p;
+    char *p;
     i_type i;
     struct nstr_item ni2;
     struct plnstr plane;
     struct lndstr land;
     struct sctstr sect2;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
     float eff;
 
     if (!(p = getstarg(player->argp[1], "Ship, land, or plane? ", buf)))
@@ -95,7 +95,7 @@ scra(void)
        return RET_SYN;
     if (p && (isalpha(*p) || (*p == '*') || (*p == '~') || issector(p)
              || islist(p))) {
-       s_char y_or_n[80], bbuf[80];
+       char y_or_n[80], bbuf[80];
 
        memset(y_or_n, 0, sizeof(y_or_n));
        if (type == EF_SHIP) {
index 7a4858d3eea81d43d9157dfd10b77d6e32584934..cab31c69ae067ee1c9cb91112132717dd635ee39 100644 (file)
@@ -64,7 +64,7 @@ scuttle_tradeship(struct shpstr *sp, int interactive)
     struct sctstr sect;
     struct mchrstr *mp;
     struct natstr *np;
-    s_char buf[512];
+    char buf[512];
     struct natstr *natp;
 
     mp = &mchr[(int)sp->shp_type];
@@ -138,9 +138,9 @@ scut(void)
     union item_u item;
     int type;
     struct mchrstr *mp;
-    s_char *p;
-    s_char prompt[128];
-    s_char buf[1024];
+    char *p;
+    char prompt[128];
+    char buf[1024];
 
     if (!(p = getstarg(player->argp[1], "Ship, land, or plane? ", buf)))
        return RET_SYN;
@@ -165,7 +165,7 @@ scut(void)
        return RET_SYN;
     if (p && (isalpha(*p) || (*p == '*') || (*p == '~') || issector(p)
              || islist(p))) {
-       s_char y_or_n[80], bbuf[80];
+       char y_or_n[80], bbuf[80];
 
        if (type == EF_SHIP) {
            if (*p == '*')
index ba3471f507d9dc27b298db1dc67088060b13429c..c05a5c5ced4b5fba71126f9308f0083f8149c64e 100644 (file)
@@ -54,13 +54,13 @@ sct(void)
     struct natstr *np;
     int ncond;
     int nsect;
-    s_char *ptr;
+    char *ptr;
     coord y, yval;
     int i;
     /* Note this is not re-entrant anyway, so we keep the buffers
        around */
-    static s_char *mapbuf = NULL;
-    static s_char **map = NULL;
+    static char *mapbuf = NULL;
+    static char **map = NULL;
 
     nsect = 0;
     if (!snxtsct(&ns, player->argp[1]))
index ebb375d0bde9ee4497f76c980874380e5648cc2d..763b44d1b92dae849e42a96f37a618243344302f 100644 (file)
@@ -75,7 +75,7 @@ sell(void)
     time_t now;
     int ii = 0;
     coord x, y;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!opt_MARKET) {
        pr("The market is disabled.\n");
index 9c316d228914bea255b4b40d12a85fe819ccd36f..03cbf538e4d59b3d6df5e5becb540cde9fd56c47 100644 (file)
@@ -69,7 +69,7 @@ set(void)
     int foundslot;
     int id;
     time_t now;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!opt_MARKET) {
        pr("The market is disabled.\n");
index 073b3bdab9e838a6f341d1b006d4762006714566..1c7a881066807925efe8354f8218186c233f6ee6 100644 (file)
@@ -53,11 +53,11 @@ int
 setres(void)
 {
     struct sctstr sect;
-    s_char *what;
+    char *what;
     int amt;
-    s_char *p;
+    char *p;
     struct nstr_sect nstr;
-    s_char buf[1024];
+    char buf[1024];
 
     if ((what = getstarg(player->argp[1],
                         "Set What (iron, gold, oil, uranium, fertility)? ",
index 777847fbef8862fb2c2f3b944886b453f01560fc..33935a457a70c3643f09dac58c660f4bc0e81567 100644 (file)
@@ -55,12 +55,12 @@ int
 setsector(void)
 {
     struct sctstr sect;
-    s_char *what;
+    char *what;
     int amt, current;
-    s_char *p;
+    char *p;
     struct nstr_sect nstr;
-    s_char buf[1024];
-    s_char char0, char1;
+    char buf[1024];
+    char char0, char1;
 
     if ((what = getstarg(player->argp[1],
                         "Give What (iron, gold, oil, uranium, fertility, owner, eff., mob., work, avail., oldown, mines)? ",
@@ -360,10 +360,10 @@ resbenefit(natid who, int good)
 }
 
 void
-resnoise(struct sctstr *sptr, int public_amt, s_char *name, int old,
+resnoise(struct sctstr *sptr, int public_amt, char *name, int old,
         int new)
 {
-    s_char p[100];
+    char p[100];
 
     pr("%s of %s changed from %d to %d%%\n",
        name, xyas(sptr->sct_x, sptr->sct_y, player->cnum), old, new);
index c8748adba4009588721b38687fdbdf3f118797c2..772e449090bf928ef4d5bc1510f824ac5be5706b 100644 (file)
 int
 show(void)
 {
-    s_char *p;
+    char *p;
     void (*cfunc)(int);
     void (*sfunc)(int);
     void (*bfunc)(int);
     struct natstr *natp;
     int tlev;
-    s_char buf[1024];
+    char buf[1024];
     int rlev;
 
     if (!(p = getstarg(player->argp[1],
index 0c7a80088d153086c9ea415de5c7b2492954220e..047690162d37f19bf40fa696d73d4ed2d6188d7b 100644 (file)
@@ -141,7 +141,7 @@ showsat(struct sky **skypp, int x, int y)
     struct sky *todelete = 0;
     struct sky **prev;
     struct plchrstr *pcp;
-    s_char *name;
+    char *name;
     int nsat = 0;
 
     prev = 0;
index 2d01dedac080c673ee119b7668e2cfe478b5f167..a3ff2e7b55d93fbaa17157bd516067f93dc5f26c 100644 (file)
@@ -47,9 +47,9 @@
 #include "land.h"
 #include "commands.h"
 
-static void starv_sects(s_char *range);
-static void starv_ships(s_char *range);
-static void starv_units(s_char *range);
+static void starv_sects(char *range);
+static void starv_ships(char *range);
+static void starv_units(char *range);
 static void sect_hdr(void);
 static void ship_hdr(void);
 static void unit_hdr(void);
@@ -61,7 +61,7 @@ starve(void)
     int do_sects = 0;
     int do_ships = 0;
     int do_units = 0;
-    s_char range[1024];
+    char range[1024];
 
     if (opt_NOFOOD) {          /* no food - no work! */
        pr("No food is required in this game\n");
@@ -98,7 +98,7 @@ starve(void)
 }
 
 static void
-starv_sects(s_char *range)
+starv_sects(char *range)
 {
     struct nstr_sect nstr;
     struct sctstr sect;
@@ -158,7 +158,7 @@ sect_hdr(void)
 }
 
 static void
-starv_ships(s_char *range)
+starv_ships(char *range)
 {
     struct nstr_item ni;
     struct shpstr ship;
@@ -206,7 +206,7 @@ ship_hdr(void)
 }
 
 static void
-starv_units(s_char *range)
+starv_units(char *range)
 {
     struct nstr_item ni;
     struct lndstr land;
index 75098cfe3140f95abcbdc0810820238b337d8543..462ef0a3a4e63d361e97920efd8ea36c41658096 100644 (file)
@@ -61,15 +61,15 @@ surv(void)
     struct natstr *np;
     struct sctstr sect;
     struct range range;
-    s_char *ptr;
+    char *ptr;
     struct nscstr cond[NS_NCOND];
     int ncond;
     int i;
-    s_char buf[1024];
+    char buf[1024];
     /* Note this is not re-entrant anyway, so we keep the buffers
        around */
-    static s_char *mapbuf = NULL;
-    static s_char **map = NULL;
+    static char *mapbuf = NULL;
+    static char **map = NULL;
 
     nsect = 0;
     ptr = getstarg(player->argp[1], "commodity or variable? ", buf);
index d8499d75876d816e8c0010406175c42e48623f5b..0f86ac02ba544f610c540f31d9db661cde391fc3 100644 (file)
@@ -54,8 +54,8 @@ swaps(void)
 {
     struct sctstr secta, sectb;
     coord x, y;
-    s_char buf[1024];
-    s_char *p;
+    char buf[1024];
+    char *p;
 
     if (!(p = getstarg(player->argp[1], "First sector : ", buf)) ||
        !sarg_xy(p, &secta.sct_x, &secta.sct_y) ||
index 54b1ff1edd3f9b8e04281fa9910375b9ec9f8529..5f80bf81189a7a68494fd7207a1984d5ba33ba4e 100644 (file)
@@ -51,7 +51,7 @@
 #include "commands.h"
 
 static void expose_ship(struct shpstr *s1, struct shpstr *s2);
-static int tend_land(struct shpstr *tenderp, s_char *units);
+static int tend_land(struct shpstr *tenderp, char *units);
 
 int
 tend(void)
@@ -71,9 +71,9 @@ tend(void)
     int transfer;
     int total;
     int type;
-    s_char *p;
-    s_char prompt[512];
-    s_char buf[1024];
+    char *p;
+    char prompt[512];
+    char buf[1024];
 
     if (!(p = getstarg(player->argp[1],
                       "Tend what commodity (or 'land')? ", buf)) || !*p)
@@ -205,7 +205,7 @@ expose_ship(struct shpstr *s1, struct shpstr *s2)
 }
 
 static int
-tend_land(struct shpstr *tenderp, s_char *units)
+tend_land(struct shpstr *tenderp, char *units)
 {
     struct nstr_item lni;
     struct nstr_item targets;
@@ -213,7 +213,7 @@ tend_land(struct shpstr *tenderp, s_char *units)
     struct lndstr land;
     struct plnstr plane;
     struct nstr_item pni;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!snxtitem(&lni, EF_LAND, units))
        return RET_SYN;
index cd3fb95df117bc6848129ddd2717b089350d874d..a72ed78157c5fedaeb3b99230ae103961889b64f 100644 (file)
@@ -46,12 +46,12 @@ int
 terr(void)
 {
     struct sctstr sect;
-    s_char *p;
+    char *p;
     int terr_n;
     int field;
     struct nstr_sect nstr;
-    s_char prompt[128];
-    s_char buf[1024];
+    char prompt[128];
+    char buf[1024];
 
     if (!snxtsct(&nstr, player->argp[1]))
        return RET_SYN;
index dd79ecae308890a7a6fa5c6da4f3e32829c8593a..369798dfa0b306f9c1c749cb9db814ce037c48c9 100644 (file)
@@ -54,11 +54,11 @@ thre(void)
     struct nstr_sect nstr;
     int val;
     struct ichrstr *ip;
-    s_char *p;
+    char *p;
     int thresh;
     i_type type;
-    s_char prompt[128];
-    s_char buf[128];
+    char prompt[128];
+    char buf[128];
 
     if ((ip = whatitem(player->argp[1], "What commodity? ")) == 0)
        return RET_SYN;
index 5cdb1f07cb4e43344edb1c7823af34f27217ed4e..531398e7be31cc5bc599fe377586b7cd7af449bc 100644 (file)
@@ -45,7 +45,7 @@ togg(void)
 {
     int flag = 0;
     int pos;
-    s_char *name;
+    char *name;
     struct natstr *np;
 
     np = getnatp(player->cnum);
index fb1a52891637f2d4eced032e5b758d666879de13..3564e83ed26e961eaf267e83f1b80d48e0f04dc5 100644 (file)
@@ -70,14 +70,14 @@ torp(void)
     double hitchance;
     struct shpstr vship;
     struct shpstr sub;
-    s_char *ptr;
+    char *ptr;
     double mobcost;
     struct mchrstr *mcp;
     struct nstr_item nbst;
-    s_char buf[1024];
-    s_char *sav;
+    char buf[1024];
+    char *sav;
     int ntorping = 0;
-    s_char prompt[128];
+    char prompt[128];
 
     if (!(sav = getstarg(player->argp[1], "From ship(s)? ", buf)))
        return RET_SYN;
@@ -470,7 +470,7 @@ fire_torp(struct shpstr *sp, struct shpstr *targ, int range, int ntargets)
     return 1;
 }
 
-s_char *
+char *
 prsub(struct shpstr *sp)
 {
     if (mchr[(int)sp->shp_type].m_flags & M_SUB)
index 2e73b83e0fa65ecca4e1743f5aa728424e30ae13..b15235c6a4265781351c1ca6c0709677ac7602a0 100644 (file)
@@ -79,7 +79,7 @@ trad(void)
     double tleft;
     double tally;
     int q;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!opt_MARKET) {
        pr("The market is disabled.\n");
index 2c9bc427a6602fb003448af83073cd5ff48f4f41..f88a9cc51d2fffb8b231765da3dabf43ac28a762 100644 (file)
@@ -58,8 +58,8 @@ static int supgr(void);
 int
 upgr(void)
 {
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     if (!(p = getstarg(player->argp[1], "Ship, land, or plane? ", buf)))
        return RET_SYN;
index 593335acfa8f39a0330fd7025d51d59336fa0134..84e03dda29bfe14fcced747065d1e8c8a60bab2e 100644 (file)
@@ -47,10 +47,10 @@ wing(void)
 
     struct plnstr plane;
     int count;
-    s_char *cp;
-    s_char c;
+    char *cp;
+    char c;
     struct nstr_item nstr;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!(cp = getstarg(player->argp[1], "wing? ", buf)))
        return RET_SYN;
index d06f320fc571a02deef031cb5a9f435ce736f895..d84bcb4bf4bb253660bf1319560a1bcd1b8da0cd 100644 (file)
@@ -54,9 +54,9 @@ work(void)
     struct sctstr sect;
     struct lndstr land;
     int work_amt, eff_amt, w;
-    s_char *p;
+    char *p;
     coord donex = 0, doney = 1;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!snxtitem(&ni, EF_LAND, player->argp[1]))
        return RET_SYN;
index d819b0d167df843fbbd73804d20c5c05538729ca..cf011564a3efdb53dc2b371940fbfe899fc3e920 100644 (file)
@@ -66,7 +66,7 @@ zdon(void)
 {
     natid whichcnum;
     struct natstr *natp;
-    register s_char *p;
+    char *p;
 
     int update;
     int checking;
@@ -74,7 +74,7 @@ zdon(void)
     int totpop;
     int totwant;
     int dowant;
-    s_char buf[1024];
+    char buf[1024];
 
     if (!opt_DEMANDUPDATE) {
        pr("Demand updates are not enabled.\n");
index bb9a648e28167178ec90a98872d36333e4d14d2b..44740fb5efdd54bb50c3544650d68d67ace507c9 100644 (file)
@@ -38,8 +38,8 @@
 #include "optlist.h"
 #include <stdio.h>
 
-s_char *
-mailbox(s_char *buf, natid cn)
+char *
+mailbox(char *buf, natid cn)
 {
     (void)sprintf(buf, "%s%d", telfil, cn);
     return buf;
index 90a21bd95e719fe9c7b0c0edbd53494593a8f1ef..198b582c1c334f1cefd9c568d16bb85b1fd2bc6e 100644 (file)
@@ -51,7 +51,7 @@
 #include "optlist.h"
 
 static int bmnxtsct(struct nstr_sect *);
-static s_char map_char(unsigned char type, natid own, int owner_or_god);
+static char map_char(unsigned char type, natid own, int owner_or_god);
 
 int
 draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp)
@@ -67,8 +67,8 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp)
     /* Note this is not re-entrant anyway, so we keep the buffers
        around */
     static unsigned char *bitmap = NULL;
-    static s_char *wmapbuf = NULL;
-    static s_char **wmap = NULL;
+    static char *wmapbuf = NULL;
+    static char **wmap = NULL;
 
     if (!wmapbuf)
        wmapbuf = malloc(WORLD_Y * MAPWIDTH(1));
@@ -153,7 +153,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp)
        }
     } else {
        struct sctstr sect;
-       s_char mapch;
+       char mapch;
        int changed = 0;
 
        if (!player->god) {
@@ -218,7 +218,7 @@ draw_map(int bmap, s_char origin, int map_flags, struct nstr_sect *nsp)
        }
     }
     if (map_flags & MAP_HIGH) {
-       s_char *ptr;
+       char *ptr;
        struct sctstr sect;
 
        snxtsct_rewind(nsp);
@@ -287,7 +287,7 @@ bmnxtsct(struct nstr_sect *np)
  * Return character to use in maps for sector type TYPE owned by OWN.
  * If OWNER_OR_GOD, the map is for the sector's owner or a deity.
  */
-static s_char
+static char
 map_char(unsigned char type, natid own, int owner_or_god)
 {
     if (type > SCT_MAXDEF) {
@@ -352,16 +352,16 @@ bmaps_intersect(natid a, natid b)
 /* Note that this requires that the BMAP is mapped into memory */
 
 int
-share_bmap(natid from, natid to, struct nstr_sect *ns, s_char des,
-          s_char *from_name)
+share_bmap(natid from, natid to, struct nstr_sect *ns, char des,
+          char *from_name)
 {
-    s_char *from_bmap = ef_ptr(EF_BMAP, from);
-    s_char *to_bmap = ef_ptr(EF_BMAP, to);
+    char *from_bmap = ef_ptr(EF_BMAP, from);
+    char *to_bmap = ef_ptr(EF_BMAP, to);
     int n = 0;
     struct sctstr sect;
-    s_char fromdes;
-    s_char todes;
-    s_char from_des = *from_name;
+    char fromdes;
+    char todes;
+    char from_des = *from_name;
 
     if (isalpha(from_des))
        from_des &= ~0x20;
index cad7dc5c7ed877b32725e17a6693cc61893bce2b..ce1ede1716a753035a1313f503ddc56e8ae3135e 100644 (file)
@@ -59,7 +59,7 @@ struct bestp {
     struct as_data *adp;
 };
 
-static int bp_path(struct as_path *pp, s_char *buf);
+static int bp_path(struct as_path *pp, char *buf);
 static int bp_neighbors(struct as_coord c, struct as_coord *cp, void *);
 static double bp_lbcost(struct as_coord from, struct as_coord to, void *);
 static double bp_realcost(struct as_coord from, struct as_coord to, void *);
@@ -96,7 +96,7 @@ bp_init(void)
  * string in path.  Return 0 on success, -1 on error.
  */
 static int
-best_path(struct sctstr *from, struct sctstr *to, s_char *path,
+best_path(struct sctstr *from, struct sctstr *to, char *path,
          int mob_type)
 {
     static struct bestp *mybestpath;
@@ -138,10 +138,10 @@ best_path(struct sctstr *from, struct sctstr *to, s_char *path,
  * success, -1 on failure.
  */
 static int
-bp_path(struct as_path *pp, s_char *buf)
+bp_path(struct as_path *pp, char *buf)
 {
     struct as_path *np;
-    s_char *cp = buf;
+    char *cp = buf;
     int dx, dy;
     int n;
 
@@ -301,7 +301,7 @@ bp_clear_cachepath(void)
 }
 
 double
-pathcost(struct sctstr *start, s_char *path, int mob_type)
+pathcost(struct sctstr *start, char *path, int mob_type)
 {
     struct sctstr *sectp = (void *)empfile[EF_SECTOR].cache;
     unsigned i;
@@ -338,16 +338,16 @@ pathcost(struct sctstr *start, s_char *path, int mob_type)
     return cost;
 }
 
-s_char *
-BestDistPath(s_char *path,
+char *
+BestDistPath(char *path,
             struct sctstr *from,
             struct sctstr *to, double *cost, int mob_type)
 {
     return BestLandPath(path, from, to, cost, mob_type);
 }
 
-s_char *
-BestLandPath(s_char *path,
+char *
+BestLandPath(char *path,
             struct sctstr *from,
             struct sctstr *to, double *cost, int mob_type)
 {
@@ -364,8 +364,8 @@ BestLandPath(s_char *path,
     return path;
 }
 
-s_char *
-BestShipPath(s_char *path, int fx, int fy, int tx, int ty, int owner)
+char *
+BestShipPath(char *path, int fx, int fy, int tx, int ty, int owner)
 {
     char *map;
 
@@ -376,8 +376,8 @@ BestShipPath(s_char *path, int fx, int fy, int tx, int ty, int owner)
     return bestownedpath(path, map, fx, fy, tx, ty, owner);
 }
 
-s_char *
-BestAirPath(s_char *path, int fx, int fy, int tx, int ty)
+char *
+BestAirPath(char *path, int fx, int fy, int tx, int ty)
 {
     return bestownedpath(path, 0, fx, fy, tx, ty, -1);
 }
index b76a64820d90d05c15e928b1f25b7b1c13c80858..e2502e4a48e634114034faa7923dd5aa98057030 100644 (file)
  * null terminate
  */
 void
-blankfill(s_char *ptr, register struct range *range, int size)
+blankfill(char *ptr, struct range *range, int size)
 {
-    register s_char *p;
-    register int row;
-    register int col;
+    char *p;
+    int row;
+    int col;
 
     for (row = 0; row < range->height; row++) {
        col = (range->width + 1) * (size + 1) / 2 - 1;
index e63912b99367201cd5fa51a04563acd3a01eb279..01761bfcd43ac40583dd93fca72899c304857ab5 100644 (file)
@@ -67,7 +67,7 @@ struct keymatch configkeys[] = {
 #undef EMP_CONFIG_C_OUTPUT
 };
 
-static struct keymatch *keylookup(s_char *key, struct keymatch tbl[]);
+static struct keymatch *keylookup(char *key, struct keymatch tbl[]);
 static void set_dirs(char *);
 
 /*
@@ -159,9 +159,9 @@ done:
 
 /* find the key in the table */
 static struct keymatch *
-keylookup(register s_char *command, struct keymatch *tbl)
+keylookup(char *command, struct keymatch *tbl)
 {
-    register struct keymatch *kp;
+    struct keymatch *kp;
 
     if (command == 0 || *command == 0)
        return 0;
index dc762a18d836d97005bb737d04424a66fd88189a..fabeb997ce313058bf0862cc57376df096099b40 100644 (file)
@@ -126,7 +126,7 @@ io_close(struct iop *iop)
 int
 io_input(struct iop *iop, int waitforinput)
 {
-    s_char buf[IO_BUFSIZE];
+    char buf[IO_BUFSIZE];
     int cc;
 
     /* Not a read IOP */
@@ -278,7 +278,7 @@ io_output(struct iop *iop, int waitforoutput)
 }
 
 int
-io_peek(struct iop *iop, s_char *buf, int nbytes)
+io_peek(struct iop *iop, char *buf, int nbytes)
 {
     if ((iop->flags & IO_READ) == 0)
        return -1;
@@ -286,7 +286,7 @@ io_peek(struct iop *iop, s_char *buf, int nbytes)
 }
 
 int
-io_read(struct iop *iop, s_char *buf, int nbytes)
+io_read(struct iop *iop, char *buf, int nbytes)
 {
     int cc;
 
@@ -299,7 +299,7 @@ io_read(struct iop *iop, s_char *buf, int nbytes)
 }
 
 int
-io_write(struct iop *iop, s_char *buf, int nbytes, int doWait)
+io_write(struct iop *iop, char *buf, int nbytes, int doWait)
 {
     int len;
 
@@ -335,7 +335,7 @@ io_output_all(struct iop *iop)
 }
 
 int
-io_gets(struct iop *iop, s_char *buf, int nbytes)
+io_gets(struct iop *iop, char *buf, int nbytes)
 {
     if ((iop->flags & IO_READ) == 0)
        return -1;
@@ -343,7 +343,7 @@ io_gets(struct iop *iop, s_char *buf, int nbytes)
 }
 
 int
-io_puts(struct iop *iop, s_char *buf)
+io_puts(struct iop *iop, char *buf)
 {
     if ((iop->flags & IO_WRITE) == 0)
        return -1;
index 2ed7738341e886981c5ff9382347842254ed342a..78d02393b985322e25a42c46556a503330089b41 100644 (file)
 #include "queue.h"
 #include "ioqueue.h"
 
-static int ioqtocbuf(struct ioqueue *ioq, s_char *buf, int cc,
+static int ioqtocbuf(struct ioqueue *ioq, char *buf, int cc,
                     register int stopc);
 #if !defined(_WIN32)
 static int ioqtoiov(struct ioqueue *ioq, struct iovec *iov,
                    register int max);
 #endif
-static int ioqtobuf(struct ioqueue *ioq, s_char *buf, int cc);
-static int appendcc(struct ioqueue *ioq, s_char *buf, int cc);
+static int ioqtobuf(struct ioqueue *ioq, char *buf, int cc);
+static int appendcc(struct ioqueue *ioq, char *buf, int cc);
 static int removecc(struct ioqueue *ioq, register int cc);
 
 #if defined(_WIN32)
@@ -123,7 +123,7 @@ ioq_makeiov(struct ioqueue *ioq, struct iovec *iov, int cc)
  * number of bytes actually found.
  */
 int
-ioq_peek(struct ioqueue *ioq, s_char *buf, int cc)
+ioq_peek(struct ioqueue *ioq, char *buf, int cc)
 {
     return ioqtobuf(ioq, buf, cc);
 }
@@ -135,7 +135,7 @@ ioq_dequeue(struct ioqueue *ioq, int cc)
 }
 
 void
-ioq_append(struct ioqueue *ioq, s_char *buf, int cc)
+ioq_append(struct ioqueue *ioq, char *buf, int cc)
 {
     appendcc(ioq, buf, cc);
 }
@@ -152,7 +152,7 @@ ioq_qsize(struct ioqueue *ioq)
  * no input is available
  */
 int
-ioq_gets(struct ioqueue *ioq, s_char *buf, int cc)
+ioq_gets(struct ioqueue *ioq, char *buf, int cc)
 {
     int nbytes;
     int actual;
@@ -173,7 +173,7 @@ ioq_gets(struct ioqueue *ioq, s_char *buf, int cc)
 }
 
 int
-ioq_puts(struct ioqueue *ioq, s_char *buf)
+ioq_puts(struct ioqueue *ioq, char *buf)
 {
     return appendcc(ioq, buf, strlen(buf));
 }
@@ -189,14 +189,14 @@ ioq_puts(struct ioqueue *ioq, s_char *buf)
  * left for a higher level.
  */
 static int
-ioqtobuf(struct ioqueue *ioq, s_char *buf, int cc)
+ioqtobuf(struct ioqueue *ioq, char *buf, int cc)
 {
     struct io *io;
     struct emp_qelem *qp;
     struct emp_qelem *head;
     register int nbytes;
     register int nleft;
-    register s_char *offset;
+    char *offset;
 
     nleft = cc;
     offset = buf;
@@ -223,7 +223,7 @@ ioqtobuf(struct ioqueue *ioq, s_char *buf, int cc)
  * terminating on the stop character.
  */
 static int
-ioqtocbuf(struct ioqueue *ioq, s_char *buf, int cc, register int stopc)
+ioqtocbuf(struct ioqueue *ioq, char *buf, int cc, register int stopc)
 {
     register int nbytes;
     register s_char *p;
@@ -294,7 +294,7 @@ ioqtoiov(struct ioqueue *ioq, struct iovec *iov, register int max)
  * append a buffer to the end of the ioq.
  */
 static int
-appendcc(struct ioqueue *ioq, s_char *buf, int cc)
+appendcc(struct ioqueue *ioq, char *buf, int cc)
 {
     struct io *io;
     int len;
index 888311b6e0f63217a0e71dad3496b42359076ef3..97aea9166b9bec3b7a97b9f5f1a0ed4bc209e16c 100644 (file)
 #include "misc.h"
 #include "gen.h"
 
-s_char *
-numstr(s_char *buf, int n)
+char *
+numstr(char *buf, int n)
 {
-    static s_char *numnames[] = {
+    static char *numnames[] = {
        "zero", "one", "two", "three", "four", "five", "six",
        "seven", "eight", "nine", "ten", "eleven", "twelve",
        "thirteen", "fourteen", "fifteen", "sixteen",
        "seventeen", "eighteen", "nineteen",
     };
-    static s_char *tennames[] = {
+    static char *tennames[] = {
        "", "", "twenty", "thirty", "forty", "fifty",
        "sixty", "seventy", "eighty", "ninety",
        "hundred", "hundred ten", "hundred twenty",
@@ -71,10 +71,10 @@ numstr(s_char *buf, int n)
     return buf;
 }
 
-s_char *
+char *
 effadv(int n)
 {
-    static s_char *effadv_list[] = {
+    static char *effadv_list[] = {
        "minimally", "partially", "moderately", "completely",
     };
 
index af1248f1fe34bcea78d7612a529fc26b49069aa1..83ed415772a357a9b83c731ea377dc59ea424b8a 100644 (file)
 #include "gen.h"
 
 int
-onearg(s_char *arg, s_char *prompt)
+onearg(char *arg, char *prompt)
 {
     int n;
-    s_char buf[1024];
+    char buf[1024];
 
     if (arg == 0 || *arg == 0) {
        if ((arg = getstring(prompt, buf)) == 0)
index 62833502583dbe8e3df640e1d7cd0bdd74e227f9..60854e8ed0644ad74ffe51afd531d8ce4c131315 100644 (file)
 
 #include "prototypes.h"
 
-s_char *
+char *
 splur(int n)
 {
     return n == 1 ? "" : "s";
 }
 
-s_char *
+char *
 esplur(int n)
 {
     return n == 1 ? "" : "es";
 }
 
-s_char *
+char *
 iesplur(int n)
 {
     return n == 1 ? "y" : "ies";
index 33205b48c27ac69fd42113757bf969a90770d29c..83d445e3fced3c8f9f4cacd9d91136ce8dc0ee26 100644 (file)
@@ -124,8 +124,8 @@ log_last_commands(void)
 int
 explain(void)
 {
-    register s_char *format;
-    register int i;
+    char *format;
+    int i;
 
     pr("\t\tCurrent EMPIRE Command List\n"
        "\t\t------- ------ ------- ----\n"
index 4fc335377f595c313dd0a0254ea8a48dca478505..dd5aa5dbbd73b6254da73a9cb6f8c38e0366a778 100644 (file)
@@ -41,7 +41,7 @@
 #include <fcntl.h>
 
 int
-natbyname(s_char *name, natid *result)
+natbyname(char *name, natid *result)
 {
     struct natstr *np;
     int i;
@@ -57,7 +57,7 @@ natbyname(s_char *name, natid *result)
 }
 
 int
-natpass(int cn, s_char *pass)
+natpass(int cn, char *pass)
 {
     struct natstr *np;
 
index e8468c9203b914d3d9c55235c8fdbcaa6165b418..aeff1584696382358ea82a334cde886ba821c5d2 100644 (file)
@@ -65,7 +65,7 @@ static void ac_dog(struct plist *ap, struct plist *dp);
 
 void
 ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
-            coord x, coord y, s_char *path, int mission_flags,
+            coord x, coord y, char *path, int mission_flags,
             int no_air_defense, struct emp_qelem *obomb,
             struct emp_qelem *oesc)
 {
@@ -78,7 +78,7 @@ ac_encounter(struct emp_qelem *bomb_list, struct emp_qelem *esc_list,
     int unfriendly[MAXNOC];
     int overfly[MAXNOC];
     struct emp_qelem ilist[MAXNOC], *qp;
-    s_char mypath[1024];
+    char mypath[1024];
     int myp;
     int civ, mil;
     natid plane_owner;
@@ -602,8 +602,8 @@ ac_dog(struct plist *ap, struct plist *dp)
     int intensity;
     natid att_own, def_own;
     int adam, ddam;
-    s_char mesg[1024];
-    s_char temp[14];
+    char mesg[1024];
+    char temp[14];
 
     att_own = ap->plane.pln_own;
     def_own = dp->plane.pln_own;
@@ -694,11 +694,11 @@ ac_dog(struct plist *ap, struct plist *dp)
  */
 void
 ac_planedamage(struct plist *plp, natid from, int dam, natid other,
-              int checkabort, int show, s_char *mesg)
+              int checkabort, int show, char *mesg)
 {
     struct plnstr *pp;
     int disp;
-    s_char dmess[255];
+    char dmess[255];
     int eff;
     struct shpstr ship;
     struct lndstr land;
@@ -953,7 +953,7 @@ ac_fireflak(struct emp_qelem *list, natid from, natid other, int guns)
     int diff;
     struct emp_qelem *qp;
     struct emp_qelem *next;
-    s_char msg[255];
+    char msg[255];
 
     plp = (struct plist *)list->q_forw;
 
index 51108b0c65807f65e95f69a1cc777964346447a9..ae5dff735fe847c89e03dde687026c0908ea05e0 100644 (file)
@@ -42,9 +42,9 @@
  * If they don't answer 'y' or 'Y', return 0
  */
 int
-confirm(s_char *promptstring)
+confirm(char *promptstring)
 {
-    s_char y_or_n[1024];
+    char y_or_n[1024];
     char c;
 
     if (getstring(promptstring, y_or_n) == 0)
@@ -60,9 +60,9 @@ confirm(s_char *promptstring)
  * return 1 for y or Y, and 0 for n or N
  */
 int
-askyn(s_char *promptstring)
+askyn(char *promptstring)
 {
-    s_char y_or_n[1024];
+    char y_or_n[1024];
     char c;
 
     while (getstring(promptstring, y_or_n)) {
index 7629c720b08713ff2d3756a6d858a55b916b6d5c..29f39059b600a5c63fa72e23c81b560bb5157637 100644 (file)
@@ -127,7 +127,7 @@ att_combat_init(struct combat *com, int type)
 
 /* print a combat object with optional preposition */
 
-static s_char *
+static char *
 pr_com(int inon, struct combat *com, natid who)
 {
     if (com->type == EF_SECTOR) {
@@ -148,7 +148,7 @@ pr_com(int inon, struct combat *com, natid who)
     }
 }
 
-static s_char *
+static char *
 prcom(int inon, struct combat *com)
 {
     return pr_com(inon, com, player->cnum);
@@ -452,7 +452,7 @@ att_abort(int combat_mode, struct combat *off, struct combat *def)
 {
     struct sctstr sect;
     int rel;
-    s_char y_or_n[512];
+    char y_or_n[512];
     struct natstr *natp;
 
     if (player->aborted)
@@ -708,8 +708,8 @@ int
 att_ask_support(int offset, int *fortp, int *shipp, int *landp,
                int *planep)
 {
-    s_char buf[1024];
-    s_char *p;
+    char buf[1024];
+    char *p;
     *fortp = *shipp = *landp = *planep = 1;
 
     if (player->argp[offset] != NULL) {
@@ -880,7 +880,7 @@ ask_off(int combat_mode, struct combat *off, struct combat *def)
 {
     int attacking_mil;
     int mob_support;
-    s_char prompt[512];
+    char prompt[512];
 
     if (att_get_combat(off, 0) <= 0)
        return 0;
@@ -959,7 +959,7 @@ ask_olist(int combat_mode, struct combat *off, struct combat *def,
     int count = 0;
     int maxland = 0;
     int first_time = 1;
-    s_char prompt[512];
+    char prompt[512];
 
     if (def->type == EF_LAND)
        return;
@@ -1342,7 +1342,7 @@ get_land(int combat_mode, struct combat *def, int uid, struct llist *llp,
         int victim_land)
 {
     struct lndstr *lp = &llp->land;
-    s_char buf[512];
+    char buf[512];
 
     getland(uid, lp);
 
@@ -1473,8 +1473,8 @@ att_reacting_units(struct combat *def, struct emp_qelem *list, int a_spy,
     int radius;
     int origx, origy;
     double eff = att_combat_eff(def);
-    s_char *p;
-    s_char buf[1024];
+    char *p;
+    char buf[1024];
 
     /*
      *
@@ -1580,7 +1580,7 @@ att_reacting_units(struct combat *def, struct emp_qelem *list, int a_spy,
 /* Pop off shells and fly bombing missions to get your attack multiplier up */
 
 static double
-get_osupport(s_char *outs, struct combat *def, int fort_sup, int ship_sup,
+get_osupport(char *outs, struct combat *def, int fort_sup, int ship_sup,
             int land_sup, int plane_sup)
 {
     double osupport = 1.0;
@@ -1619,7 +1619,7 @@ get_osupport(s_char *outs, struct combat *def, int fort_sup, int ship_sup,
 /* Pop off shells and fly bombing missions to get your defense multiplier up */
 
 static double
-get_dsupport(s_char *outs, struct emp_qelem *list, struct combat *def,
+get_dsupport(char *outs, struct emp_qelem *list, struct combat *def,
             int ototal, int dtotal)
 {
     double dsupport = 1.0;
@@ -1708,8 +1708,8 @@ att_get_support(int combat_mode, int ofort, int oship, int oland,
                double *osupportp, double *dsupportp, int a_engineer)
 {
     int ototal, dtotal;
-    s_char osupports[512];
-    s_char dsupports[512];
+    char osupports[512];
+    char dsupports[512];
 
     if (combat_mode == A_PARA)
        *osupports = '\0';
@@ -1801,7 +1801,7 @@ att_fight(int combat_mode, struct combat *off, struct emp_qelem *olist,
     int news_item;
     int recalctime;
     double odds;
-    s_char *action;
+    char *action;
 
     ototal = get_ototal(combat_mode, off, olist, osupport,
                        combat_mode != A_PARA);
@@ -2154,7 +2154,7 @@ send_reacting_units_home(struct emp_qelem *list)
 {
     struct emp_qelem *qp, *next;
     struct llist *llp;
-    s_char buf[1024];
+    char buf[1024];
 
     for (qp = list->q_forw; qp != list; qp = next) {
        next = qp->q_forw;
@@ -2199,7 +2199,7 @@ take_def(int combat_mode, struct emp_qelem *list, struct combat *off,
     int n;
     int occuppied = 0;
     struct llist *llp, *delete_me = 0;
-    s_char buf[1024];
+    char buf[1024];
     struct sctstr sect;
     struct shpstr ship;
     struct lndstr land;
@@ -2281,8 +2281,8 @@ ask_move_in(struct combat *off, struct emp_qelem *olist,
     int n;
     struct emp_qelem *qp, *next;
     struct llist *llp;
-    s_char buf[512];
-    s_char prompt[512];
+    char buf[512];
+    char prompt[512];
     s_char land_answer[1024];
     s_char *answerp;
 
@@ -2351,7 +2351,7 @@ move_in_land(int combat_mode, struct combat *off, struct emp_qelem *olist,
 {
     struct emp_qelem *qp, *next;
     struct llist *llp;
-    s_char buf[512];
+    char buf[512];
 
     if (QEMPTY(olist))
        return;
@@ -2450,9 +2450,9 @@ ask_move_in_off(struct combat *off, struct combat *def)
     int mob_support;
     int num_mil, dam = 0, left;
     double d, weight;
-    s_char prompt[512];
-    s_char buf[1024];
-    s_char *p;
+    char prompt[512];
+    char buf[1024];
+    char *p;
 
     if (att_get_combat(off, 0) <= 0)
        return;
index 7f069640540006a1f8f1d9e6e9c4744bb1140e81..daba5dec987a56ebce8a012107d6999a0de261ab 100644 (file)
@@ -39,7 +39,7 @@
 #include "optlist.h"
 
 void
-border(struct range *rp, s_char *prefstr, s_char *sep)
+border(struct range *rp, char *prefstr, char *sep)
 
                                /* prefixes each line */
                                /* separates the numbers */
index 1b43598b66d14fd00a6a69a58d4c4e8e7dd25d6f..69259e19f351a44ddc462e530ac6d11d571dcec5 100644 (file)
@@ -42,7 +42,7 @@
 #include "optlist.h"
 
 void
-caploss(struct sctstr *sp, natid coun, s_char *msg)
+caploss(struct sctstr *sp, natid coun, char *msg)
 {
     struct natstr *natp;
     struct lonstr loan;
index 5c9cf5f3303f66a6be50ef6cdb06d7a0d187f93c..bd2d23a6e77f9fef0f49058deed39f569484e1e3 100644 (file)
 #include "prototypes.h"
 
 int
-chkmoney(long int cost, long int cash, s_char *argp)
+chkmoney(long int cost, long int cash, char *argp)
 {
-    s_char buf[1024];
-    s_char *p;
+    char buf[1024];
+    char *p;
 
     if (cash > 0 && cost > cash / 2) {
        pr("This operation will cost you $%ld, and you only have $%ld.\n",
@@ -58,10 +58,10 @@ chkmoney(long int cost, long int cash, s_char *argp)
 
 int
 check_cost(int looping, int cost, long int cash, int *warnedp,
-          s_char *argp)
+          char *argp)
 {
-    s_char buf[1024];
-    s_char *p;
+    char buf[1024];
+    char *p;
 
     if (looping && cash > 0 && player->dolcost + cost > cash
        && *warnedp < 2) {
index 6e7948bc0410c0263fb93e14d93c040cfdda0f9b..9d7d2eb5bedc1a8560b2b750a06d753f5a66b307 100644 (file)
@@ -62,9 +62,9 @@ detonate(struct plnstr *pp, int x, int y)
     struct shpstr ship;
     struct lndstr land;
     struct nukstr nuke;
-    s_char *bp;
-    s_char buf[128];
-    s_char buf2[128];
+    char *bp;
+    char buf[128];
+    char buf2[128];
     natid own;
     int type;
     int damage;
index 2a534c0d42c6a82e76c75ea67adcd5e1673f9751..078a8d82cc9fadac4ddac8d101f459cec76f423d 100644 (file)
@@ -171,7 +171,7 @@ lnd_init(int n, void *ptr)
     lp->lnd_own = 0;
 }
 
-s_char *
+char *
 prland(struct lndstr *lp)
 {
     return prbuf("%s #%d", lchr[(int)lp->lnd_type].l_name, lp->lnd_uid);
index caecf9640d15df2c944696eed4ff43eb8c105802..25853a366305772aa7fcd713eaa064aa625517ba 100644 (file)
@@ -286,7 +286,7 @@ num_shipsatxy(coord x, coord y, int wantflags, int nowantflags)
  */
 
 int
-islist(s_char *p)
+islist(char *p)
 {
     int x;
 
index 979ca9a0cb471bbbb1f33d61270c0e8175aac08d..12d8c07bda7db18cd0289e539edf6b3c33ce5574 100644 (file)
@@ -150,7 +150,7 @@ total_mil(struct lndstr *lp)
 }
 
 void
-lnd_print(struct llist *llp, s_char *s)
+lnd_print(struct llist *llp, char *s)
 {
     if (llp->land.lnd_own == player->cnum)
        pr("%s %s\n", prland(&llp->land), s);
@@ -159,7 +159,7 @@ lnd_print(struct llist *llp, s_char *s)
 }
 
 void
-lnd_delete(struct llist *llp, s_char *s)
+lnd_delete(struct llist *llp, char *s)
 {
     if (s)
        lnd_print(llp, s);
@@ -182,7 +182,7 @@ lnd_take_casualty(int combat_mode, struct llist *llp, int cas)
     coord bx, by;
     struct sctstr sect;
     int ret_chance;
-    s_char buf[1024];
+    char buf[1024];
     int taken;
     int nowhere_to_go = 0;
     struct sctstr rsect;
@@ -353,10 +353,10 @@ lnd_spyval(struct lndstr *lp)
 
 int
 intelligence_report(int destination, struct lndstr *lp, int spy,
-                   s_char *mess)
+                   char *mess)
 {
     struct lchrstr *lcp;
-    s_char buf1[80], buf2[80], buf3[80];
+    char buf1[80], buf2[80], buf3[80];
     double estimate = 0.0;     /* estimated defense value */
 
     if (destination == 0)
@@ -566,7 +566,7 @@ lnd_mar(struct emp_qelem *list, double *minmobp, double *maxmobp,
     coord allx;
     coord ally;
     int first = 1;
-    s_char mess[128];
+    char mess[128];
     int rel;
 
     *minmobp = 9876.0;
@@ -805,7 +805,7 @@ lnd_list(struct emp_qelem *land_list)
 }
 
 void
-lnd_mess(s_char *str, struct llist *llp)
+lnd_mess(char *str, struct llist *llp)
 {
     mpr(llp->land.lnd_own, "%s %s & stays in %s\n",
        prland(&llp->land),
@@ -1082,7 +1082,7 @@ lnd_mar_one_sector(struct emp_qelem *list, int dir, natid actor,
     int stopping = 0;
     int visible;
     int stop;
-    s_char dp[80];
+    char dp[80];
     int rel;
     int oldown;
 
@@ -1314,13 +1314,13 @@ lnd_support(natid victim, natid attacker, coord x, coord y, int defending)
     return (int)dam;
 }
 
-s_char *
-lnd_path(int together, struct lndstr *lp, s_char *buf)
+char *
+lnd_path(int together, struct lndstr *lp, char *buf)
 {
     coord destx;
     coord desty;
     struct sctstr d_sect, sect;
-    s_char *cp;
+    char *cp;
     double dummy;
 
     if (!sarg_xy(buf, &destx, &desty))
index 51835d418ea7b60a07948d4a5707bb28ee8083dc..4555f257bf296113e40029bd0cc33f6910ea8505 100644 (file)
@@ -76,7 +76,7 @@ union item_u {
 
 static void add_airport(struct emp_qelem *, coord, coord);
 static int air_damage(struct emp_qelem *, coord, coord, int, natid,
-                     s_char *, int);
+                     char *, int);
 static void build_mission_list(struct genlist *, coord, coord, int, natid);
 static void build_mission_list_type(struct genlist *, coord, coord, int,
                                    int, natid);
@@ -87,13 +87,13 @@ static int mission_pln_arm(struct emp_qelem *, coord, coord, int,
                           int, struct ichrstr *, int, int, int *);
 static void mission_pln_sel(struct emp_qelem *, int, int, int);
 static int perform_mission(coord, coord, natid, struct emp_qelem *, int,
-                          s_char *, int);
+                          char *, int);
 
 /*
  * Interdict commodities & transported planes
  */
 int
-ground_interdict(coord x, coord y, natid victim, s_char *s)
+ground_interdict(coord x, coord y, natid victim, char *s)
 {
     int cn;
     int dam = 0, newdam, rel;
@@ -177,7 +177,7 @@ only_subs(struct emp_qelem *list)
  *
  */
 int
-unit_interdict(coord x, coord y, natid victim, s_char *s, int hardtarget,
+unit_interdict(coord x, coord y, natid victim, char *s, int hardtarget,
               int mission)
 {
     int cn;
@@ -423,7 +423,7 @@ find_escorts(coord x, coord y, natid cn, struct emp_qelem *escorts)
 
 static int
 perform_mission(coord x, coord y, natid victim, struct emp_qelem *list,
-               int mission, s_char *s, int hardtarget)
+               int mission, char *s, int hardtarget)
 {
     struct emp_qelem *qp, missiles, bombers, escorts, airp, b, e;
     struct emp_qelem *newqp;
@@ -832,7 +832,7 @@ cando(int mission, int type)
     return 0;
 }
 
-s_char *
+char *
 nameofitem(struct genitem *gp, int type)
 {
     switch (type) {
@@ -846,7 +846,7 @@ nameofitem(struct genitem *gp, int type)
     return NULL;
 }
 
-s_char *
+char *
 mission_name(short int mission)
 {
     switch (mission) {
@@ -1378,7 +1378,7 @@ divide(struct emp_qelem *l1, struct emp_qelem *l2, coord x, coord y)
 
 static int
 air_damage(struct emp_qelem *bombers, coord x, coord y, int mission,
-          natid victim, s_char *s, int hardtarget)
+          natid victim, char *s, int hardtarget)
 {
     struct emp_qelem *qp;
     struct plist *plp;
index dfe8a48e383a9d672900d09cb0dd278cac716799..471f6498b4a1d6d47230378bc4dded044e9bc284 100644 (file)
@@ -64,7 +64,7 @@ msl_equip(struct plnstr *pp)
 
 int
 msl_hit(struct plnstr *pp, int hardtarget, int type, int news_item,
-       int snews_item, s_char *what, coord x, coord y, int victim)
+       int snews_item, char *what, coord x, coord y, int victim)
 {
     int hit;
     struct shpstr ship;
@@ -72,7 +72,7 @@ msl_hit(struct plnstr *pp, int hardtarget, int type, int news_item,
     int sublaunch = 0;
     struct plchrstr *pcp = plchr + pp->pln_type;
     int hitchance = pln_hitchance(pp, hardtarget, type);
-    s_char *from;
+    char *from;
     int dam, dummyi;
 
     mpr(pp->pln_own, "Preparing to launch %s at %s %s %s%s\n",
@@ -155,7 +155,7 @@ msl_hit(struct plnstr *pp, int hardtarget, int type, int news_item,
     mpr(pp->pln_own, hit ? "HIT!\n" : "miss\n");
     if (pcp->pl_flags & P_T)
        mpr(victim, "...Incoming %s missile %s\n",
-           sublaunch ? (s_char *)"" : cname(pp->pln_own),
+           sublaunch ? "" : cname(pp->pln_own),
            hit ? "HIT!\n" : "missed\n");
     if (hit && news_item) {
        if (sublaunch)
@@ -225,10 +225,10 @@ msl_intercept(coord x, coord y, natid bombown, int hardtarget,
     struct plist *ip;
     int icount = 0;
     short destroyed = 0;
-    s_char *att_name;
-    s_char *def_name;
+    char *att_name;
+    char *def_name;
     int news_item;
-    s_char *who = sublaunch ? (s_char *)"" : cname(bombown);
+    char *who = sublaunch ? "" : cname(bombown);
 
     getsect(x, y, &sect);
     if (wantflags == P_O && !nowantflags) {
@@ -372,7 +372,7 @@ msl_intercept(coord x, coord y, natid bombown, int hardtarget,
 /* Keep launching missiles on list until mindam damage has been done */
 int
 msl_launch_mindam(struct emp_qelem *list, coord x, coord y, int hardtarget,
-                 int type, int mindam, s_char *whatp, int victim,
+                 int type, int mindam, char *whatp, int victim,
                  int mission)
 {
     struct emp_qelem *qp;
index fae127ac06419a3782af600f6a65980595435404..9334ce0debc3caf2c82c83b8d1c98b50b1bdf68a 100644 (file)
@@ -46,7 +46,7 @@
  * Ignore commands that require more permissions than COMSTAT.
  */
 int
-comtch(register s_char *command, struct cmndstr *coms, int comstat)
+comtch(char *command, struct cmndstr *coms, int comstat)
 {
     register struct cmndstr *com;
     register int status;
index b45ddaf369a0cbdf3e41e4159b74e83fe81f5c89..85d957789608c19f99716d5e92ffeaadb02d7dfb 100644 (file)
@@ -139,7 +139,7 @@ pln_init(int n, void *ptr)
     pp->pln_own = 0;
 }
 
-s_char *
+char *
 prplane(struct plnstr *pp)
 {
     return prbuf("%s #%d", plchr[(int)pp->pln_type].pl_name, pp->pln_uid);
index 0b78b3cb9abc36c5b57310b982b17bcc2af5ed2e..9a1cbbb675211f66c403f4f0cc5a9a3976ddd819 100644 (file)
@@ -68,8 +68,8 @@ radmapupd(int own, int cx, int cy, int eff, int range, double seesub)
 /* More dynamic world sized buffers.  We create 'em once, and then
  * never again.  No need to keep creating/tearing apart.  We may
  * want to do this in other places too where it doesn't matter. */
-static s_char **rad;
-static s_char *radbuf;
+static char **rad;
+static char *radbuf;
 static s_char **vis;
 static s_char *visbuf;
 
index f2702972a5d07a448e5a8b6bc83b98377087d0ce..4d1ae3d8446912063f1809df6308cd6d2f07e60f 100644 (file)
@@ -47,13 +47,13 @@ setrel(natid us, natid them, int rel)
 {
     struct natstr *mynp;
     struct natstr *themnp;
-    s_char *myname = cname(us);
-    s_char *themname;
+    char *myname = cname(us);
+    char *themname;
     int oldrel;
-    s_char *whichway;
+    char *whichway;
     int n_up = 0;
     int n_down = 0;
-    s_char *addendum = 0;
+    char *addendum = 0;
     int theirrel;
 
     if (rel < AT_WAR)
index e39cb528bfec9879d5100d20a81bd35b9433bb93..6aa6af99b90cee8b7ffd0641efa04aebef44371c 100644 (file)
@@ -46,8 +46,8 @@
 #include "prototypes.h"
 #include "optlist.h"
 
-static s_char **rad;
-static s_char *radbuf;
+static char **rad;
+static char *radbuf;
 
 void
 satmap(int x, int y, int eff, int range, int flags, int type)
@@ -65,7 +65,7 @@ satmap(int x, int y, int eff, int range, int flags, int type)
     int changed = 0;
     long crackle;
     s_char noise[100];
-    s_char selection[1024];
+    char selection[1024];
 
     if (!eff)
        return;
index fa9a98bd808c75cfca4716daa1c4e8aa2cea92d4..4ad8390f8332780aba64ea979f12b295ab351c8c 100644 (file)
@@ -138,9 +138,9 @@ checksect(struct sctstr *sp)
 }
 
 int
-issector(s_char *arg)
+issector(char *arg)
 {
-    s_char c;
+    char c;
 
     while (0 != (c = *arg++))
        if (!isdigit(c) && !isspace(c) && (c != '/'))
index 7c4a4562e22d2de38e37f19ae648400746d9b3c2..4bbe3f39d593d508eb78c9866fb738e5c374d6cf 100644 (file)
@@ -124,7 +124,7 @@ shp_init(int n, void *ptr)
     sp->shp_own = 0;
 }
 
-s_char *
+char *
 prship(struct shpstr *sp)
 {
     return prbuf("%s %s(#%d)",
index 10fa565840656703dfb21f0fda4cd4ebafde7033..710e482d4748ab611b54066c3913635a59aa9124 100644 (file)
@@ -57,7 +57,7 @@
 
 static int shp_check_one_mines(struct mlist *);
 static int shp_hit_mine(struct shpstr *, struct mchrstr *);
-static void shp_mess(s_char *, struct mlist *);
+static void shp_mess(char *, struct mlist *);
 
 void
 shp_sel(struct nstr_item *ni, struct emp_qelem *list)
@@ -354,7 +354,7 @@ shp_list(struct emp_qelem *ship_list)
 }
 
 static void
-shp_mess(s_char *str, struct mlist *mlp)
+shp_mess(char *str, struct mlist *mlp)
 {
     mpr(mlp->ship.shp_own, "%s %s & stays in %s\n",
        prship(&mlp->ship),
@@ -551,7 +551,7 @@ shp_missile_interdiction(struct emp_qelem *list, coord newx, coord newy,
     int stopping = 0;
     struct emp_qelem msl_list, *qp, *newqp;
     struct mlist *mvs;
-    s_char what[512];
+    char what[512];
 
     msl_sel(&msl_list, newx, newy, victim, P_T | P_MAR, 0, MI_INTERDICT);
 
@@ -824,7 +824,7 @@ shp_nav_one_sector(struct emp_qelem *list, int dir, natid actor,
     double mobcost;
     double tech;               /* for mapping */
     double tf;                 /* for mapping */
-    s_char dp[80];
+    char dp[80];
     int navigate;
 
     if (dir <= DIR_STOP || dir >= DIR_VIEW) {
@@ -999,13 +999,13 @@ shp_missile_defense(coord dx, coord dy, natid bombown, int hardtarget)
     return 0;                  /* all attempts failed */
 }
 
-s_char *
-shp_path(int together, struct shpstr *shp, s_char *buf)
+char *
+shp_path(int together, struct shpstr *shp, char *buf)
 {
     coord destx;
     coord desty;
     struct sctstr d_sect;
-    s_char *cp;
+    char *cp;
 
     if (!sarg_xy(buf, &destx, &desty))
        return 0;
@@ -1036,7 +1036,7 @@ shp_missdef(struct shpstr *sp, natid victim)
     struct emp_qelem list;
     struct mlist *mlp;
     int eff;
-    s_char buf[512];
+    char buf[512];
 
     emp_initque(&list);
 
index 86915d953009fbb0136ee40b8dc2aafb5a56dcd7..c1285d45f0e4672564990477798a5b8e7a966b10 100644 (file)
@@ -165,7 +165,7 @@ s_commod(int own, int x, int y, i_type type, int total_wanted,
     int packing;
     struct dchrstr *dp;
     struct ichrstr *ip;
-    s_char buf[1024];
+    char buf[1024];
 
     /* try to get it from sector we're in */
     getsect(x, y, &dest);
index 0e3718d372b3da702d4d961204a0afab16a6ce82..55aede7c65e788cb448de17a9ac06c044e55d0a5 100644 (file)
@@ -74,7 +74,7 @@ trade_check_item_ok(union trdgenstr *tgp)
     return 0;
 }
 
-s_char *
+char *
 trade_nameof(struct trdstr *tp, union trdgenstr *tgp)
 {
     switch (tp->trd_type) {
index 124e5e58f8d8e35c081c2c05ec0cd3f014742100..4a4ab70d8a7025421ac3b06154e6aaea8b1b37c2 100644 (file)
@@ -55,7 +55,7 @@ int
 trechk(register natid actor, register natid victim, int provision)
 {
     register natid cn;
-    s_char buf[1024];
+    char buf[1024];
     int news_verb;
     int involved[MAXNOC];
     struct trtstr treaty;
index 2bec6e5b171d8707f2136692719cea26e0a82500..c821fc1debebdbbb2db277b6c04e3a0353ee6f39 100644 (file)
@@ -57,7 +57,7 @@
 #endif
 
 int
-dodistribute(struct sctstr *sp, int imex, s_char *path, double dist_i_cost,
+dodistribute(struct sctstr *sp, int imex, char *path, double dist_i_cost,
             double dist_e_cost)
          /* import or export? */
 {
index 4c512ef1d8372dfaf41d266046278703e26d95c3..672295d48b92505b5384996c80d77a61cccff466 100644 (file)
@@ -48,7 +48,7 @@
 
 /* Used for building up distribution info */
 struct distinfo {
-    s_char *path;              /* path to take */
+    char *path;                        /* path to take */
     double imcost;             /* import cost */
     double excost;             /* export cost */
 };
@@ -66,11 +66,11 @@ static struct distinfo *g_distptrs;
 /* #define SAVE_FINISH_PATHS */
 
 #ifndef SAVE_FINISH_PATHS
-static s_char *finish_path = "h";      /* Placeholder indicating path exists */
+static char *finish_path = "h";        /* Placeholder indicating path exists */
 #endif /* SAVE_FINISH_PATHS */
 
 static void assemble_dist_paths(struct distinfo *distptrs);
-static s_char *ReversePath(s_char *path);
+static char *ReversePath(char *path);
 
 void
 finish_sects(int etu)
@@ -176,13 +176,13 @@ finish_sects(int etu)
 static void
 assemble_dist_paths(struct distinfo *distptrs)
 {
-    s_char *path, *p;
+    char *path, *p;
     double d;
     struct sctstr *sp;
     struct sctstr *dist;
     struct distinfo *infptr;
     int n;
-    s_char buf[512];
+    char buf[512];
 
     for (n = 0; NULL != (sp = getsectid(n)); n++) {
        if ((sp->sct_dist_x == sp->sct_x) && (sp->sct_dist_y == sp->sct_y))
@@ -229,11 +229,11 @@ assemble_dist_paths(struct distinfo *distptrs)
     }
 }
 
-static s_char *
-ReversePath(s_char *path)
+static char *
+ReversePath(char *path)
 {
-    s_char *patharray = "aucdefjhigklmyopqrstbvwxnz";
-    static s_char new_path[512];
+    char *patharray = "aucdefjhigklmyopqrstbvwxnz";
+    static char new_path[512];
     int ind;
 
     if (path == NULL)
index 0c4ec54c9c0c610a7f7ea720b3ef655429a49825..64e50e61d48124bd4a16a886b4f8b7bfff94b7a3 100644 (file)
@@ -98,7 +98,7 @@ sail_find_fleet(struct fltheadstr **head, struct shpstr *sp)
     int len = 0;
     int follow = -1;
     int stop;
-    s_char *cp;
+    char *cp;
 
     if (sp->shp_own == 0)
        return 0;
@@ -211,7 +211,7 @@ sail_nav_fleet(struct fltheadstr *fltp)
     struct shpstr *sp, ship;
     struct sctstr *sectp;
     int error = 0;
-    s_char *s, *p;
+    char *s, *p;
     natid own;
     struct emp_qelem ship_list;
     int dir;
index 2538bc2344cb61cfac91c4a8dd0bc4c0b2fa5916..081dc2811bb1a41f3b7520ffdfe51226b74db282 100644 (file)
@@ -57,7 +57,7 @@ shutdown_sequence(void *unused)
     struct natstr *god;
     struct tm *tm;
     time_t now;
-    s_char header[100];
+    char header[100];
 
     if (shutdown_pending <= 0) {
        shutdown_pending = 0;