Compiler suggested cleanups
This commit is contained in:
parent
ddb10425e7
commit
d964df4eea
5 changed files with 16 additions and 16 deletions
|
@ -1372,7 +1372,7 @@ t_stat cr_show_trans ( FILE *st,
|
||||||
return (SCPE_OK);
|
return (SCPE_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
t_stat cr_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr)
|
static t_stat cr_help (FILE *st, DEVICE *dptr, UNIT *uptr, int32 flag, char *cptr)
|
||||||
{
|
{
|
||||||
#if defined(VM_PDP11)
|
#if defined(VM_PDP11)
|
||||||
char *devtype = "CR11/CD11";
|
char *devtype = "CR11/CD11";
|
||||||
|
|
|
@ -591,7 +591,7 @@ static t_stat rc_set_size (UNIT *uptr, int32 val, char *cptr, void *desc)
|
||||||
return (SCPE_OK);
|
return (SCPE_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
char *rc_description (DEVICE *dptr)
|
static char *rc_description (DEVICE *dptr)
|
||||||
{
|
{
|
||||||
return "RC11/RS64 fixed head disk controller";
|
return "RC11/RS64 fixed head disk controller";
|
||||||
}
|
}
|
||||||
|
|
|
@ -1386,7 +1386,7 @@ static t_stat vh_detach ( UNIT *uptr )
|
||||||
return (tmxr_detach (&vh_desc, uptr));
|
return (tmxr_detach (&vh_desc, uptr));
|
||||||
}
|
}
|
||||||
|
|
||||||
t_stat vh_show_vec (FILE *st, UNIT *uptr, int32 arg, void *desc)
|
static t_stat vh_show_vec (FILE *st, UNIT *uptr, int32 arg, void *desc)
|
||||||
{
|
{
|
||||||
TMXR *mp = (TMXR *) desc;
|
TMXR *mp = (TMXR *) desc;
|
||||||
|
|
||||||
|
|
|
@ -1315,7 +1315,7 @@ int32 PutMem(int32 addr, int32 data)
|
||||||
|
|
||||||
/* Check the condition register against the qbyte and return 1 if true */
|
/* Check the condition register against the qbyte and return 1 if true */
|
||||||
|
|
||||||
int32 condition(int32 qbyte)
|
static int32 condition(int32 qbyte)
|
||||||
{
|
{
|
||||||
int32 r = 0, t, q;
|
int32 r = 0, t, q;
|
||||||
t = (qbyte & 0xf0) >> 4;
|
t = (qbyte & 0xf0) >> 4;
|
||||||
|
|
24
sim_serial.c
24
sim_serial.c
|
@ -583,7 +583,7 @@ return ports;
|
||||||
interest to a DCB retrieved from a call to "GetCommState".
|
interest to a DCB retrieved from a call to "GetCommState".
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SERHANDLE sim_open_os_serial (char *name)
|
static SERHANDLE sim_open_os_serial (char *name)
|
||||||
{
|
{
|
||||||
SERHANDLE port;
|
SERHANDLE port;
|
||||||
DCB dcb;
|
DCB dcb;
|
||||||
|
@ -675,7 +675,7 @@ return port; /* return port handle on
|
||||||
1.5 stop bits.
|
1.5 stop bits.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
t_stat sim_config_os_serial (SERHANDLE port, SERCONFIG config)
|
static t_stat sim_config_os_serial (SERHANDLE port, SERCONFIG config)
|
||||||
{
|
{
|
||||||
static const struct {
|
static const struct {
|
||||||
char parity;
|
char parity;
|
||||||
|
@ -868,7 +868,7 @@ else
|
||||||
The serial port is closed. Errors are ignored.
|
The serial port is closed. Errors are ignored.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void sim_close_os_serial (SERHANDLE port)
|
static void sim_close_os_serial (SERHANDLE port)
|
||||||
{
|
{
|
||||||
CloseHandle (port); /* close the port */
|
CloseHandle (port); /* close the port */
|
||||||
return;
|
return;
|
||||||
|
@ -1000,7 +1000,7 @@ return ports;
|
||||||
reading.
|
reading.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SERHANDLE sim_open_os_serial (char *name)
|
static SERHANDLE sim_open_os_serial (char *name)
|
||||||
{
|
{
|
||||||
static const tcflag_t i_clear = IGNBRK | /* ignore BREAK */
|
static const tcflag_t i_clear = IGNBRK | /* ignore BREAK */
|
||||||
BRKINT | /* signal on BREAK */
|
BRKINT | /* signal on BREAK */
|
||||||
|
@ -1118,7 +1118,7 @@ return port; /* return port fd for su
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
t_stat sim_config_os_serial (SERHANDLE port, SERCONFIG config)
|
static t_stat sim_config_os_serial (SERHANDLE port, SERCONFIG config)
|
||||||
{
|
{
|
||||||
struct termios tio;
|
struct termios tio;
|
||||||
int32 i;
|
int32 i;
|
||||||
|
@ -1339,7 +1339,7 @@ return (int32) written; /* return number of
|
||||||
The serial port is closed. Errors are ignored.
|
The serial port is closed. Errors are ignored.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void sim_close_os_serial (SERHANDLE port)
|
static void sim_close_os_serial (SERHANDLE port)
|
||||||
{
|
{
|
||||||
close (port); /* close the port */
|
close (port); /* close the port */
|
||||||
return;
|
return;
|
||||||
|
@ -1484,7 +1484,7 @@ return ports;
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
SERHANDLE sim_open_os_serial (char *name)
|
static SERHANDLE sim_open_os_serial (char *name)
|
||||||
{
|
{
|
||||||
uint32 status;
|
uint32 status;
|
||||||
uint32 chan = 0;
|
uint32 chan = 0;
|
||||||
|
@ -1541,7 +1541,7 @@ return chan; /* return channel for su
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
t_stat sim_config_os_serial (SERHANDLE port, SERCONFIG config)
|
static t_stat sim_config_os_serial (SERHANDLE port, SERCONFIG config)
|
||||||
{
|
{
|
||||||
int32 i;
|
int32 i;
|
||||||
SENSE_BUF sense;
|
SENSE_BUF sense;
|
||||||
|
@ -1780,7 +1780,7 @@ return (int32)iosb.count; /* return number of char
|
||||||
The serial port is closed. Errors are ignored.
|
The serial port is closed. Errors are ignored.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void sim_close_os_serial (SERHANDLE port)
|
static void sim_close_os_serial (SERHANDLE port)
|
||||||
{
|
{
|
||||||
sys$dassgn (port); /* close the port */
|
sys$dassgn (port); /* close the port */
|
||||||
return;
|
return;
|
||||||
|
@ -1800,7 +1800,7 @@ return 0;
|
||||||
|
|
||||||
/* Open a serial port */
|
/* Open a serial port */
|
||||||
|
|
||||||
SERHANDLE sim_open_os_serial (char *name)
|
static SERHANDLE sim_open_os_serial (char *name)
|
||||||
{
|
{
|
||||||
return INVALID_HANDLE;
|
return INVALID_HANDLE;
|
||||||
}
|
}
|
||||||
|
@ -1808,7 +1808,7 @@ return INVALID_HANDLE;
|
||||||
|
|
||||||
/* Configure a serial port */
|
/* Configure a serial port */
|
||||||
|
|
||||||
t_stat sim_config_os_serial (SERHANDLE port, SERCONFIG config)
|
static t_stat sim_config_os_serial (SERHANDLE port, SERCONFIG config)
|
||||||
{
|
{
|
||||||
return SCPE_IERR;
|
return SCPE_IERR;
|
||||||
}
|
}
|
||||||
|
@ -1840,7 +1840,7 @@ return -1;
|
||||||
|
|
||||||
/* Close a serial port */
|
/* Close a serial port */
|
||||||
|
|
||||||
void sim_close_os_serial (SERHANDLE port)
|
static void sim_close_os_serial (SERHANDLE port)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue