use full prototypes
This commit is contained in:
parent
bb0266fe61
commit
2b6040818e
11 changed files with 23 additions and 24 deletions
|
|
@ -192,7 +192,7 @@ event(char *format, char *arg1, char *arg2, double tim, int flag)
|
||||||
p->flag = flag;
|
p->flag = flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
int evcomp();
|
int evcomp(const void*, const void*);
|
||||||
|
|
||||||
void
|
void
|
||||||
evflush(void)
|
evflush(void)
|
||||||
|
|
@ -214,13 +214,13 @@ evflush(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
evcomp(void *a1, void *a2)
|
evcomp(const void *a1, const void *a2)
|
||||||
{
|
{
|
||||||
double t1, t2;
|
double t1, t2;
|
||||||
Event *p1, *p2;
|
Event *p1, *p2;
|
||||||
|
|
||||||
p1 = a1;
|
p1 = (Event*)a1;
|
||||||
p2 = a2;
|
p2 = (Event*)a2;
|
||||||
t1 = p1->tim;
|
t1 = p1->tim;
|
||||||
t2 = p2->tim;
|
t2 = p2->tim;
|
||||||
if(p1->flag & SIGNIF)
|
if(p1->flag & SIGNIF)
|
||||||
|
|
|
||||||
|
|
@ -950,7 +950,7 @@ runmsg(Aconn *a)
|
||||||
ek = getmp(&m);
|
ek = getmp(&m);
|
||||||
mod = getmp(&m);
|
mod = getmp(&m);
|
||||||
chal = getmp(&m);
|
chal = getmp(&m);
|
||||||
if((p = getn(&m, 16)) == nil){
|
if((p = (char*)getn(&m, 16)) == nil){
|
||||||
Failchal:
|
Failchal:
|
||||||
mpfree(ek);
|
mpfree(ek);
|
||||||
mpfree(mod);
|
mpfree(mod);
|
||||||
|
|
@ -977,8 +977,8 @@ runmsg(Aconn *a)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SSH2_AGENTC_SIGN_REQUEST:
|
case SSH2_AGENTC_SIGN_REQUEST:
|
||||||
if(getm(&m, &mkey) < 0
|
if(getm(&m, &mkey) == nil
|
||||||
|| getm(&m, &mdata) < 0)
|
|| getm(&m, &mdata) == nil)
|
||||||
goto Failure;
|
goto Failure;
|
||||||
flags = get4(&m);
|
flags = get4(&m);
|
||||||
if(flags & SSH_AGENT_OLD_SIGNATURE)
|
if(flags & SSH_AGENT_OLD_SIGNATURE)
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ Rune *strtorune(Rune *buf, char *s){
|
||||||
#define get1() n1=input(F1)
|
#define get1() n1=input(F1)
|
||||||
#define get2() n2=input(F2)
|
#define get2() n2=input(F2)
|
||||||
void
|
void
|
||||||
seek2()
|
seek2(void)
|
||||||
{
|
{
|
||||||
int n1, n2;
|
int n1, n2;
|
||||||
int top2=0;
|
int top2=0;
|
||||||
|
|
@ -208,7 +208,7 @@ seek2()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void
|
void
|
||||||
seek1()
|
seek1(void)
|
||||||
{
|
{
|
||||||
int n1, n2;
|
int n1, n2;
|
||||||
int top1=0;
|
int top1=0;
|
||||||
|
|
|
||||||
|
|
@ -1204,7 +1204,7 @@ inpoly(double x, double y)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
realcut()
|
realcut(void)
|
||||||
{
|
{
|
||||||
struct place g;
|
struct place g;
|
||||||
double lat;
|
double lat;
|
||||||
|
|
|
||||||
|
|
@ -278,7 +278,7 @@ notifyf(int sig)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
catchnotes()
|
catchnotes(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ cover(x, y)
|
||||||
} /* End of cover */
|
} /* End of cover */
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
void resetbbox();
|
void resetbbox(int);
|
||||||
|
|
||||||
void
|
void
|
||||||
writebbox(fp, keyword, slop)
|
writebbox(fp, keyword, slop)
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ void error(int kind, char *mesg, unsigned int a1, unsigned int a2, unsigned int
|
||||||
int cat(char *file);
|
int cat(char *file);
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
extern int str_convert();
|
|
||||||
|
|
||||||
void
|
void
|
||||||
out_list(str)
|
out_list(str)
|
||||||
|
|
|
||||||
|
|
@ -88,16 +88,16 @@ int atend = FALSE; /* TRUE only if a comment says so */
|
||||||
FILE *fp_in; /* next input file */
|
FILE *fp_in; /* next input file */
|
||||||
FILE *fp_temp = NULL; /* for copying stdin */
|
FILE *fp_temp = NULL; /* for copying stdin */
|
||||||
|
|
||||||
void init_signals();
|
void init_signals(void);
|
||||||
void options();
|
void options(void);
|
||||||
void readmap();
|
void readmap(void);
|
||||||
void readresident();
|
void readresident(void);
|
||||||
void arguments();
|
void arguments(void);
|
||||||
void done();
|
void done(void);
|
||||||
void download();
|
void download(void);
|
||||||
int lookup(char *font);
|
int lookup(char *font);
|
||||||
void copyfonts(char *list);
|
void copyfonts(char *list);
|
||||||
void copyinput();
|
void copyinput(void);
|
||||||
extern int cat(char *file);
|
extern int cat(char *file);
|
||||||
extern void error(int errtype, char *fmt, ...);
|
extern void error(int errtype, char *fmt, ...);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ extern int tempdisk(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
Disk*
|
Disk*
|
||||||
diskinit()
|
diskinit(void)
|
||||||
{
|
{
|
||||||
Disk *d;
|
Disk *d;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -416,7 +416,7 @@ static int winchars[]= { 8226, // 8226 is a bullet
|
||||||
static StringInt* tagtable; // initialized from tagnames
|
static StringInt* tagtable; // initialized from tagnames
|
||||||
static StringInt* attrtable; // initialized from attrnames
|
static StringInt* attrtable; // initialized from attrnames
|
||||||
|
|
||||||
static void lexinit();
|
static void lexinit(void);
|
||||||
static int getplaindata(TokenSource* ts, Token* a, int* pai);
|
static int getplaindata(TokenSource* ts, Token* a, int* pai);
|
||||||
static int getdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai);
|
static int getdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai);
|
||||||
static int getscriptdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai);
|
static int getscriptdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai);
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ threadalloc(void (*fn)(void*), void *arg, uint stack)
|
||||||
y = z;
|
y = z;
|
||||||
z >>= 16; /* hide undefined 32-bit shift from 32-bit compilers */
|
z >>= 16; /* hide undefined 32-bit shift from 32-bit compilers */
|
||||||
x = z>>16;
|
x = z>>16;
|
||||||
makecontext(&t->context.uc, (void(*)())threadstart, 2, y, x);
|
makecontext(&t->context.uc, (void(*)(void))threadstart, 2, y, x);
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue