From 256025736cac4a959a044d073c465488001a35ee Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 13 May 2006 07:44:52 +0000 Subject: [PATCH] Remove unused variables. --- src/lib/commands/arm.c | 2 +- src/lib/commands/ndump.c | 1 - src/lib/commands/nuke.c | 1 - src/lib/commands/strv.c | 1 - src/lib/subs/trdsub.c | 2 -- 5 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/lib/commands/arm.c b/src/lib/commands/arm.c index 9dd9022d..193dba22 100644 --- a/src/lib/commands/arm.c +++ b/src/lib/commands/arm.c @@ -54,7 +54,7 @@ arm(void) struct plnstr pl; struct nukstr nuke; char *p; - int pno, nukno; + int nukno; struct nstr_item ni; char buf[1024]; char prompt[128]; diff --git a/src/lib/commands/ndump.c b/src/lib/commands/ndump.c index 8c4dab88..e781e4a2 100644 --- a/src/lib/commands/ndump.c +++ b/src/lib/commands/ndump.c @@ -44,7 +44,6 @@ int ndump(void) { - int i; struct nstr_item nstr; struct nukstr nuk; time_t now; diff --git a/src/lib/commands/nuke.c b/src/lib/commands/nuke.c index 0902b77f..03357e0b 100644 --- a/src/lib/commands/nuke.c +++ b/src/lib/commands/nuke.c @@ -48,7 +48,6 @@ nuke(void) { int first_line = 0; int show_comm; - int i; struct nstr_item nstr; struct nukstr nuk; struct sctstr sect; diff --git a/src/lib/commands/strv.c b/src/lib/commands/strv.c index 1c364589..75e6bff4 100644 --- a/src/lib/commands/strv.c +++ b/src/lib/commands/strv.c @@ -57,7 +57,6 @@ static void unit_hdr(void); int starve(void) { - struct nstr_sect nstr; int do_sects = 0; int do_ships = 0; int do_units = 0; diff --git a/src/lib/subs/trdsub.c b/src/lib/subs/trdsub.c index bb2c3471..542fd271 100644 --- a/src/lib/subs/trdsub.c +++ b/src/lib/subs/trdsub.c @@ -98,14 +98,12 @@ trade_nameof(struct trdstr *tp, union trdgenstr *tgp) int trade_desc(struct trdstr *tp, union trdgenstr *tgp) { - int i; i_type it; struct sctstr sect; struct nukstr *np; struct shpstr *sp; struct plnstr *pp; struct lndstr *lp; - int needcomma; struct nstr_item ni; struct plnstr plane; struct lndstr land;