Fix prototypes.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@615 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -200,9 +200,9 @@ extern jmp_buf
|
||||
|
||||
extern void
|
||||
command P((int, char *, int)),
|
||||
Dump P((int, unsigned char *, int)),
|
||||
Dump P((char, unsigned char *, int)),
|
||||
printoption P((char *, int, int)),
|
||||
printsub P((int, unsigned char *, int)),
|
||||
printsub P((char, unsigned char *, int)),
|
||||
sendnaws P((void)),
|
||||
setconnmode P((int)),
|
||||
setcommandmode P((void)),
|
||||
|
@@ -67,8 +67,7 @@ int prettydump;
|
||||
*/
|
||||
|
||||
void
|
||||
upcase(argument)
|
||||
register char *argument;
|
||||
upcase(char *argument)
|
||||
{
|
||||
register int c;
|
||||
|
||||
@@ -87,8 +86,7 @@ upcase(argument)
|
||||
*/
|
||||
|
||||
int
|
||||
SetSockOpt(fd, level, option, yesno)
|
||||
int fd, level, option, yesno;
|
||||
SetSockOpt(int fd, int level, int option, int yesno)
|
||||
{
|
||||
#ifndef NOT43
|
||||
return setsockopt(fd, level, option,
|
||||
@@ -110,8 +108,7 @@ SetSockOpt(fd, level, option, yesno)
|
||||
unsigned char NetTraceFile[256] = "(standard output)";
|
||||
|
||||
void
|
||||
SetNetTrace(file)
|
||||
register char *file;
|
||||
SetNetTrace(char *file)
|
||||
{
|
||||
if (NetTrace && NetTrace != stdout)
|
||||
fclose(NetTrace);
|
||||
@@ -128,10 +125,7 @@ SetNetTrace(file)
|
||||
}
|
||||
|
||||
void
|
||||
Dump(direction, buffer, length)
|
||||
char direction;
|
||||
unsigned char *buffer;
|
||||
int length;
|
||||
Dump(char direction, unsigned char *buffer, int length)
|
||||
{
|
||||
# define BYTES_PER_LINE 32
|
||||
# define min(x,y) ((x<y)? x:y)
|
||||
@@ -180,9 +174,7 @@ Dump(direction, buffer, length)
|
||||
|
||||
|
||||
void
|
||||
printoption(direction, cmd, option)
|
||||
char *direction;
|
||||
int cmd, option;
|
||||
printoption(char *direction, int cmd, int option)
|
||||
{
|
||||
if (!showoptions)
|
||||
return;
|
||||
@@ -216,7 +208,7 @@ printoption(direction, cmd, option)
|
||||
}
|
||||
|
||||
void
|
||||
optionstatus()
|
||||
optionstatus(void)
|
||||
{
|
||||
register int i;
|
||||
extern char will_wont_resp[], do_dont_resp[];
|
||||
@@ -293,10 +285,7 @@ optionstatus()
|
||||
}
|
||||
|
||||
void
|
||||
printsub(direction, pointer, length)
|
||||
char direction; /* '<' or '>' */
|
||||
unsigned char *pointer; /* where suboption data sits */
|
||||
int length; /* length of suboption data */
|
||||
printsub(char direction, unsigned char *pointer, int length)
|
||||
{
|
||||
register int i;
|
||||
char buf[512];
|
||||
@@ -857,7 +846,7 @@ printsub(direction, pointer, length)
|
||||
*/
|
||||
|
||||
void
|
||||
EmptyTerminal()
|
||||
EmptyTerminal(void)
|
||||
{
|
||||
fd_set outs;
|
||||
|
||||
@@ -878,7 +867,7 @@ EmptyTerminal()
|
||||
}
|
||||
|
||||
void
|
||||
SetForExit()
|
||||
SetForExit(void)
|
||||
{
|
||||
setconnmode(0);
|
||||
do {
|
||||
@@ -894,17 +883,14 @@ SetForExit()
|
||||
}
|
||||
|
||||
void
|
||||
Exit(returnCode)
|
||||
int returnCode;
|
||||
Exit(int returnCode)
|
||||
{
|
||||
SetForExit();
|
||||
exit(returnCode);
|
||||
}
|
||||
|
||||
void
|
||||
ExitString(string, returnCode)
|
||||
char *string;
|
||||
int returnCode;
|
||||
ExitString(char *string, int returnCode)
|
||||
{
|
||||
SetForExit();
|
||||
fwrite(string, 1, strlen(string), stderr);
|
||||
|
Reference in New Issue
Block a user