Remove some superflous declarations missed in the previous revision.
This commit is contained in:
parent
c1162bbcf4
commit
80aae5b8e6
6 changed files with 0 additions and 13 deletions
|
@ -53,7 +53,6 @@ ldump(void)
|
||||||
struct nstr_item ni;
|
struct nstr_item ni;
|
||||||
struct lndstr land;
|
struct lndstr land;
|
||||||
int vec[I_MAX + 1];
|
int vec[I_MAX + 1];
|
||||||
s_char *mission_short_name(int);
|
|
||||||
int n, i;
|
int n, i;
|
||||||
struct natstr *np;
|
struct natstr *np;
|
||||||
time_t now;
|
time_t now;
|
||||||
|
|
|
@ -50,7 +50,6 @@ lsta(void)
|
||||||
int nunits;
|
int nunits;
|
||||||
struct nstr_item ni;
|
struct nstr_item ni;
|
||||||
struct lndstr land;
|
struct lndstr land;
|
||||||
s_char *mission_short_name(int);
|
|
||||||
|
|
||||||
if (!snxtitem(&ni, EF_LAND, player->argp[1]))
|
if (!snxtitem(&ni, EF_LAND, player->argp[1]))
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
|
|
|
@ -49,7 +49,6 @@
|
||||||
int
|
int
|
||||||
thre(void)
|
thre(void)
|
||||||
{
|
{
|
||||||
extern struct ichrstr *whatitem(s_char *, s_char *);
|
|
||||||
struct sctstr sect;
|
struct sctstr sect;
|
||||||
struct nstr_sect nstr;
|
struct nstr_sect nstr;
|
||||||
int val;
|
int val;
|
||||||
|
|
|
@ -87,7 +87,6 @@ growsdown(void *x)
|
||||||
void
|
void
|
||||||
lwpReschedule(void)
|
lwpReschedule(void)
|
||||||
{
|
{
|
||||||
extern struct lwpQueue LwpSchedQ[];
|
|
||||||
static int lcount = LCOUNT;
|
static int lcount = LCOUNT;
|
||||||
static struct lwpProc *nextp;
|
static struct lwpProc *nextp;
|
||||||
static int i;
|
static int i;
|
||||||
|
|
|
@ -83,8 +83,6 @@ lwpInitSelect(struct lwpProc *proc)
|
||||||
void
|
void
|
||||||
lwpSleepFd(int fd, int mask)
|
lwpSleepFd(int fd, int mask)
|
||||||
{
|
{
|
||||||
extern struct lwpProc *LwpCurrent;
|
|
||||||
|
|
||||||
lwpStatus(LwpCurrent, "sleeping on fd %d", fd);
|
lwpStatus(LwpCurrent, "sleeping on fd %d", fd);
|
||||||
|
|
||||||
if (LwpSelect.wait[fd] != 0) {
|
if (LwpSelect.wait[fd] != 0) {
|
||||||
|
@ -130,8 +128,6 @@ lwpWakeupFd(struct lwpProc *proc)
|
||||||
void
|
void
|
||||||
lwpSleepUntil(long int until)
|
lwpSleepUntil(long int until)
|
||||||
{
|
{
|
||||||
extern struct lwpProc *LwpCurrent;
|
|
||||||
|
|
||||||
lwpStatus(LwpCurrent, "sleeping for %d sec", until - time(0));
|
lwpStatus(LwpCurrent, "sleeping for %d sec", until - time(0));
|
||||||
LwpCurrent->runtime = until;
|
LwpCurrent->runtime = until;
|
||||||
if (LwpSelect.maxfd == 0 && LwpSelect.delayq.head == 0) {
|
if (LwpSelect.maxfd == 0 && LwpSelect.delayq.head == 0) {
|
||||||
|
@ -146,7 +142,6 @@ lwpSleepUntil(long int until)
|
||||||
void
|
void
|
||||||
lwpSelect(void *arg)
|
lwpSelect(void *arg)
|
||||||
{
|
{
|
||||||
extern struct lwpProc *LwpCurrent;
|
|
||||||
struct lwpProc *us = LwpCurrent;
|
struct lwpProc *us = LwpCurrent;
|
||||||
fd_set readmask;
|
fd_set readmask;
|
||||||
fd_set writemask;
|
fd_set writemask;
|
||||||
|
|
|
@ -57,8 +57,6 @@ lwpCreateSem(char *name, int count)
|
||||||
void
|
void
|
||||||
lwpSignal(struct lwpSem *s)
|
lwpSignal(struct lwpSem *s)
|
||||||
{
|
{
|
||||||
extern struct lwpProc *LwpCurrent;
|
|
||||||
|
|
||||||
lwpStatus(LwpCurrent, "done with semaphore %s", s->name);
|
lwpStatus(LwpCurrent, "done with semaphore %s", s->name);
|
||||||
if (s->count++ < 0) {
|
if (s->count++ < 0) {
|
||||||
struct lwpProc *p = lwpGetFirst(&s->q);
|
struct lwpProc *p = lwpGetFirst(&s->q);
|
||||||
|
@ -77,8 +75,6 @@ lwpSignal(struct lwpSem *s)
|
||||||
void
|
void
|
||||||
lwpWait(struct lwpSem *s)
|
lwpWait(struct lwpSem *s)
|
||||||
{
|
{
|
||||||
extern struct lwpProc *LwpCurrent;
|
|
||||||
|
|
||||||
lwpStatus(LwpCurrent, "checking semaphore %s", s->name);
|
lwpStatus(LwpCurrent, "checking semaphore %s", s->name);
|
||||||
if (--s->count < 0) {
|
if (--s->count < 0) {
|
||||||
lwpStatus(LwpCurrent, "blocking");
|
lwpStatus(LwpCurrent, "blocking");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue