Fix prototypes.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@615 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1996-08-04 16:58:11 +00:00
parent dfbbb90006
commit 44b19d3a7a
2 changed files with 24 additions and 38 deletions

View File

@@ -200,9 +200,9 @@ extern jmp_buf
extern void extern void
command P((int, char *, int)), command P((int, char *, int)),
Dump P((int, unsigned char *, int)), Dump P((char, unsigned char *, int)),
printoption P((char *, int, int)), printoption P((char *, int, int)),
printsub P((int, unsigned char *, int)), printsub P((char, unsigned char *, int)),
sendnaws P((void)), sendnaws P((void)),
setconnmode P((int)), setconnmode P((int)),
setcommandmode P((void)), setcommandmode P((void)),

View File

@@ -66,9 +66,8 @@ int prettydump;
* Upcase (in place) the argument. * Upcase (in place) the argument.
*/ */
void void
upcase(argument) upcase(char *argument)
register char *argument;
{ {
register int c; register int c;
@@ -86,9 +85,8 @@ upcase(argument)
* Compensate for differences in 4.2 and 4.3 systems. * Compensate for differences in 4.2 and 4.3 systems.
*/ */
int int
SetSockOpt(fd, level, option, yesno) SetSockOpt(int fd, int level, int option, int yesno)
int fd, level, option, yesno;
{ {
#ifndef NOT43 #ifndef NOT43
return setsockopt(fd, level, option, return setsockopt(fd, level, option,
@@ -109,9 +107,8 @@ SetSockOpt(fd, level, option, yesno)
unsigned char NetTraceFile[256] = "(standard output)"; unsigned char NetTraceFile[256] = "(standard output)";
void void
SetNetTrace(file) SetNetTrace(char *file)
register char *file;
{ {
if (NetTrace && NetTrace != stdout) if (NetTrace && NetTrace != stdout)
fclose(NetTrace); fclose(NetTrace);
@@ -127,11 +124,8 @@ SetNetTrace(file)
strcpy((char *)NetTraceFile, "(standard output)"); strcpy((char *)NetTraceFile, "(standard output)");
} }
void void
Dump(direction, buffer, length) Dump(char direction, unsigned char *buffer, int length)
char direction;
unsigned char *buffer;
int length;
{ {
# define BYTES_PER_LINE 32 # define BYTES_PER_LINE 32
# define min(x,y) ((x<y)? x:y) # define min(x,y) ((x<y)? x:y)
@@ -179,10 +173,8 @@ Dump(direction, buffer, length)
} }
void void
printoption(direction, cmd, option) printoption(char *direction, int cmd, int option)
char *direction;
int cmd, option;
{ {
if (!showoptions) if (!showoptions)
return; return;
@@ -215,8 +207,8 @@ printoption(direction, cmd, option)
return; return;
} }
void void
optionstatus() optionstatus(void)
{ {
register int i; register int i;
extern char will_wont_resp[], do_dont_resp[]; extern char will_wont_resp[], do_dont_resp[];
@@ -292,11 +284,8 @@ optionstatus()
} }
void void
printsub(direction, pointer, length) printsub(char direction, unsigned char *pointer, int length)
char direction; /* '<' or '>' */
unsigned char *pointer; /* where suboption data sits */
int length; /* length of suboption data */
{ {
register int i; register int i;
char buf[512]; char buf[512];
@@ -856,8 +845,8 @@ printsub(direction, pointer, length)
* way to the kernel (thus the select). * way to the kernel (thus the select).
*/ */
void void
EmptyTerminal() EmptyTerminal(void)
{ {
fd_set outs; fd_set outs;
@@ -877,8 +866,8 @@ EmptyTerminal()
} }
} }
void void
SetForExit() SetForExit(void)
{ {
setconnmode(0); setconnmode(0);
do { do {
@@ -893,18 +882,15 @@ SetForExit()
setcommandmode(); setcommandmode();
} }
void void
Exit(returnCode) Exit(int returnCode)
int returnCode;
{ {
SetForExit(); SetForExit();
exit(returnCode); exit(returnCode);
} }
void void
ExitString(string, returnCode) ExitString(char *string, int returnCode)
char *string;
int returnCode;
{ {
SetForExit(); SetForExit();
fwrite(string, 1, strlen(string), stderr); fwrite(string, 1, strlen(string), stderr);