3b2: Fix line endings, enforce CONST

- Correct line endings on 3b2_ctc.c/.h and on 3b2_ports.c/.h.
- Ensured CONST on const char* arrays.
This commit is contained in:
Seth Morabito 2018-05-21 17:50:26 -07:00
parent 392b8f26a4
commit 75b1a2f317
6 changed files with 2177 additions and 2177 deletions

View file

@ -256,8 +256,8 @@ static void ctc_cmd(uint8 cid,
uint32 maxpass, blkno, delay;
uint8 dev;
uint8 sec_buf[512];
int32 secrw = 0;
int32 b, j;
t_seccnt secrw = 0;
struct vtoc vtoc = {0};
struct pdinfo pdinfo = {0};
@ -358,7 +358,7 @@ static void ctc_cmd(uint8 cid,
vtoc.sanity = VTOC_VALID;
vtoc.version = 1;
strcpy(vtoc.volume, "ctctape");
strcpy((char *)vtoc.volume, "ctctape");
vtoc.sectorsz = PD_BYTES;
vtoc.nparts = VTOC_PART;

View file

@ -105,7 +105,7 @@ size_t id_buf_ptr = 0;
uint8 id_idfield[ID_IDFIELD_LEN];
uint8 id_idfield_ptr = 0;
uint8 id_seek_state[ID_NUM_UNITS] = {ID_SEEK_NONE};
int8 id_seek_state[ID_NUM_UNITS] = {ID_SEEK_NONE};
struct id_dtype {
uint8 hd; /* Number of heads */

View file

@ -177,7 +177,7 @@ REG contty_reg[] = {
{ NULL }
};
char *brg_rates[IU_SPEED_REGS][IU_SPEEDS] = {
CONST char *brg_rates[IU_SPEED_REGS][IU_SPEEDS] = {
{NULL, "110", NULL, NULL,
"300", NULL, NULL, "1200",
"2400", "4800", NULL, "9600",
@ -188,7 +188,7 @@ char *brg_rates[IU_SPEED_REGS][IU_SPEEDS] = {
"19200", NULL, NULL, NULL}
};
char *parity[3] = {"O", "E", "N"};
CONST char *parity[3] = {"O", "E", "N"};
UNIT contty_unit[2] = {
{ UDATA(&iu_svc_contty_rcv, UNIT_ATTABLE, 0) },