summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1996-01-07 22:32:35 +0000
committerphk <phk@FreeBSD.org>1996-01-07 22:32:35 +0000
commitba5752821ff9b2c60368064c525bcba0159619ef (patch)
treed7533d4f33c5ceec7baf9bae8b1caeebfab87c59 /sbin
parentff1d9d2c0c4efcdd7a698f56b444eb931b1d64a5 (diff)
downloadFreeBSD-src-ba5752821ff9b2c60368064c525bcba0159619ef.zip
FreeBSD-src-ba5752821ff9b2c60368064c525bcba0159619ef.tar.gz
Move some tables to "const" and remove some unused vars.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/i386/ft/ftecc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/sbin/i386/ft/ftecc.c b/sbin/i386/ft/ftecc.c
index fbba10f..95de073 100644
--- a/sbin/i386/ft/ftecc.c
+++ b/sbin/i386/ft/ftecc.c
@@ -41,7 +41,7 @@ struct inv_mat {
/*
* Powers of x, modulo 255.
*/
-static UCHAR alpha_power[] = {
+static const UCHAR alpha_power[] = {
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80,
0x87, 0x89, 0x95, 0xad, 0xdd, 0x3d, 0x7a, 0xf4,
0x6f, 0xde, 0x3b, 0x76, 0xec, 0x5f, 0xbe, 0xfb,
@@ -80,7 +80,7 @@ static UCHAR alpha_power[] = {
/*
* Log table, modulo 255 + 1.
*/
-static UCHAR alpha_log[] = {
+static const UCHAR alpha_log[] = {
0xff, 0x00, 0x01, 0x63, 0x02, 0xc6, 0x64, 0x6a,
0x03, 0xcd, 0xc7, 0xbc, 0x65, 0x7e, 0x6b, 0x2a,
0x04, 0x8d, 0xce, 0x4e, 0xc8, 0xd4, 0xbd, 0xe1,
@@ -119,7 +119,7 @@ static UCHAR alpha_log[] = {
/*
* Multiplication table for 0xc0.
*/
-static UCHAR mult_c0[] = {
+static const UCHAR mult_c0[] = {
0x00, 0xc0, 0x07, 0xc7, 0x0e, 0xce, 0x09, 0xc9,
0x1c, 0xdc, 0x1b, 0xdb, 0x12, 0xd2, 0x15, 0xd5,
0x38, 0xf8, 0x3f, 0xff, 0x36, 0xf6, 0x31, 0xf1,
@@ -322,7 +322,6 @@ calculate_inverse(int nerrs, int *pblk, struct inv_mat *inv)
static inline void
determine(int nerrs, struct inv_mat *inv, UCHAR *ss, UCHAR *es)
{
- UCHAR tmp;
int i, j;
for (i = 0; i < nerrs; i++) {
@@ -404,10 +403,10 @@ int
check_parity(UCHAR *data, ULONG badmap, ULONG crcmap)
{
int crcerrs, eblk[3];
- int col, row;
- int i, j, nblks;
+ int col;
+ int i, nblks;
UCHAR ss[3], es[3];
- int i1, i2, saverrs;
+ int i1, i2;
struct inv_mat inv;
nblks = sect_count(badmap);
OpenPOWER on IntegriCloud