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:
parent
392b8f26a4
commit
75b1a2f317
6 changed files with 2177 additions and 2177 deletions
|
@ -256,8 +256,8 @@ static void ctc_cmd(uint8 cid,
|
||||||
uint32 maxpass, blkno, delay;
|
uint32 maxpass, blkno, delay;
|
||||||
uint8 dev;
|
uint8 dev;
|
||||||
uint8 sec_buf[512];
|
uint8 sec_buf[512];
|
||||||
int32 secrw = 0;
|
|
||||||
int32 b, j;
|
int32 b, j;
|
||||||
|
t_seccnt secrw = 0;
|
||||||
struct vtoc vtoc = {0};
|
struct vtoc vtoc = {0};
|
||||||
struct pdinfo pdinfo = {0};
|
struct pdinfo pdinfo = {0};
|
||||||
|
|
||||||
|
@ -358,7 +358,7 @@ static void ctc_cmd(uint8 cid,
|
||||||
|
|
||||||
vtoc.sanity = VTOC_VALID;
|
vtoc.sanity = VTOC_VALID;
|
||||||
vtoc.version = 1;
|
vtoc.version = 1;
|
||||||
strcpy(vtoc.volume, "ctctape");
|
strcpy((char *)vtoc.volume, "ctctape");
|
||||||
vtoc.sectorsz = PD_BYTES;
|
vtoc.sectorsz = PD_BYTES;
|
||||||
vtoc.nparts = VTOC_PART;
|
vtoc.nparts = VTOC_PART;
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ size_t id_buf_ptr = 0;
|
||||||
uint8 id_idfield[ID_IDFIELD_LEN];
|
uint8 id_idfield[ID_IDFIELD_LEN];
|
||||||
uint8 id_idfield_ptr = 0;
|
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 {
|
struct id_dtype {
|
||||||
uint8 hd; /* Number of heads */
|
uint8 hd; /* Number of heads */
|
||||||
|
|
|
@ -177,7 +177,7 @@ REG contty_reg[] = {
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
char *brg_rates[IU_SPEED_REGS][IU_SPEEDS] = {
|
CONST char *brg_rates[IU_SPEED_REGS][IU_SPEEDS] = {
|
||||||
{NULL, "110", NULL, NULL,
|
{NULL, "110", NULL, NULL,
|
||||||
"300", NULL, NULL, "1200",
|
"300", NULL, NULL, "1200",
|
||||||
"2400", "4800", NULL, "9600",
|
"2400", "4800", NULL, "9600",
|
||||||
|
@ -188,7 +188,7 @@ char *brg_rates[IU_SPEED_REGS][IU_SPEEDS] = {
|
||||||
"19200", NULL, NULL, NULL}
|
"19200", NULL, NULL, NULL}
|
||||||
};
|
};
|
||||||
|
|
||||||
char *parity[3] = {"O", "E", "N"};
|
CONST char *parity[3] = {"O", "E", "N"};
|
||||||
|
|
||||||
UNIT contty_unit[2] = {
|
UNIT contty_unit[2] = {
|
||||||
{ UDATA(&iu_svc_contty_rcv, UNIT_ATTABLE, 0) },
|
{ UDATA(&iu_svc_contty_rcv, UNIT_ATTABLE, 0) },
|
||||||
|
|
Loading…
Add table
Reference in a new issue