Streamline signature of show_mission()
Remove unused parameter, and return status.
This commit is contained in:
parent
7ac151acac
commit
49e8b3c64b
1 changed files with 6 additions and 5 deletions
|
@ -40,7 +40,7 @@
|
||||||
#include "optlist.h"
|
#include "optlist.h"
|
||||||
#include "path.h"
|
#include "path.h"
|
||||||
|
|
||||||
static void show_mission(int, struct nstr_item *);
|
static int show_mission(struct nstr_item *);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* mission <type> <planes/ships/units> <mission type> <op sector> [<radius>]
|
* mission <type> <planes/ships/units> <mission type> <op sector> [<radius>]
|
||||||
|
@ -122,8 +122,7 @@ mission(void)
|
||||||
mission = MI_AIR_DEFENSE;
|
mission = MI_AIR_DEFENSE;
|
||||||
break;
|
break;
|
||||||
case 'q':
|
case 'q':
|
||||||
show_mission(type, &ni);
|
return show_mission(&ni);
|
||||||
return RET_OK;
|
|
||||||
default:
|
default:
|
||||||
pr("bad condition\n");
|
pr("bad condition\n");
|
||||||
pr("i\tinterdiction (any)\n");
|
pr("i\tinterdiction (any)\n");
|
||||||
|
@ -304,8 +303,8 @@ mission(void)
|
||||||
return RET_OK;
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static int
|
||||||
show_mission(int type, struct nstr_item *np)
|
show_mission(struct nstr_item *np)
|
||||||
{
|
{
|
||||||
int first = 1;
|
int first = 1;
|
||||||
union empobj_storage item;
|
union empobj_storage item;
|
||||||
|
@ -344,4 +343,6 @@ show_mission(int type, struct nstr_item *np)
|
||||||
else
|
else
|
||||||
pr(" has no mission.\n");
|
pr(" has no mission.\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return RET_OK;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue