Line 0
Link Here
|
|
|
1 |
--- cnv/vcrtorle.c.orig Thu Mar 10 20:22:42 2005 |
2 |
+++ cnv/vcrtorle.c Thu Mar 10 20:30:16 2005 |
3 |
@@ -94,9 +94,6 @@ |
4 |
|
5 |
|
6 |
static int VERBOSE = 0; |
7 |
-static char *RoutineName; |
8 |
- |
9 |
-static long int VICARpos; /* Position in file for reading w/o fseek. */ |
10 |
|
11 |
static void FatalError(s) |
12 |
char *s; |
13 |
@@ -109,20 +106,10 @@ |
14 |
static int LBLSIZE; /* size of header, must be int mult of NS */ |
15 |
static char FORMAT[80]; /* 'BYTE' is OK */ |
16 |
static char TYPE[80]; /* 'IMAGE' is OK */ |
17 |
-static int BUFSIZe; /* integer multiple of NS ? */ |
18 |
-static int DIM; /* == 3? */ |
19 |
-static int EOL; /* == 0? */ |
20 |
-static int RECSIZE; /* == LBLSIZE? */ |
21 |
static char ORG[80]; /* `BSQ` is OK */ |
22 |
static int NL; /* height */ |
23 |
static int NS; /* width */ |
24 |
static int NB; /* samples per pixel? */ |
25 |
-static int N1; /* == NL? */ |
26 |
-static int N2; /* == NS? */ |
27 |
-static int N3; /* == NB? */ |
28 |
-static int N4; /* 0 is OK */ |
29 |
-static int NBB; /* 0 is OK */ |
30 |
-static int NLB; /* 0 is OK */ |
31 |
static char HOST[80]; /* machine type? */ |
32 |
static char INTFMT[80]; /* integer format? */ |
33 |
static char REALFMT[80]; /* real format? */ |
34 |
@@ -218,20 +205,20 @@ |
35 |
|
36 |
if (0 == strcmp("FORMAT" ,Name)) {strcpy(FORMAT ,Value); continue;} |
37 |
if (0 == strcmp("TYPE" ,Name)) {strcpy(TYPE ,Value); continue;} |
38 |
- if (0 == strcmp("BUFSIZ" ,Name)) {BUFSIZe = atoi(Value); continue;} |
39 |
- if (0 == strcmp("DIM" ,Name)) {DIM = atoi(Value); continue;} |
40 |
- if (0 == strcmp("EOL" ,Name)) {EOL = atoi(Value); continue;} |
41 |
- if (0 == strcmp("RECSIZE",Name)) {RECSIZE = atoi(Value); continue;} |
42 |
+ if (0 == strcmp("BUFSIZ" ,Name)) { (void) atoi(Value); continue;} |
43 |
+ if (0 == strcmp("DIM" ,Name)) { (void) atoi(Value); continue;} |
44 |
+ if (0 == strcmp("EOL" ,Name)) { (void) atoi(Value); continue;} |
45 |
+ if (0 == strcmp("RECSIZE",Name)) { (void) atoi(Value); continue;} |
46 |
if (0 == strcmp("ORG" ,Name)) {strcpy(ORG ,Value); continue;} |
47 |
if (0 == strcmp("NL" ,Name)) {NL = atoi(Value); continue;} |
48 |
if (0 == strcmp("NS" ,Name)) {NS = atoi(Value); continue;} |
49 |
if (0 == strcmp("NB" ,Name)) {NB = atoi(Value); continue;} |
50 |
- if (0 == strcmp("N1" ,Name)) {N1 = atoi(Value); continue;} |
51 |
- if (0 == strcmp("N2" ,Name)) {N2 = atoi(Value); continue;} |
52 |
- if (0 == strcmp("N3" ,Name)) {N3 = atoi(Value); continue;} |
53 |
- if (0 == strcmp("N4" ,Name)) {N4 = atoi(Value); continue;} |
54 |
- if (0 == strcmp("NBB" ,Name)) {NBB = atoi(Value); continue;} |
55 |
- if (0 == strcmp("NLB" ,Name)) {NLB = atoi(Value); continue;} |
56 |
+ if (0 == strcmp("N1" ,Name)) { (void) atoi(Value); continue;} |
57 |
+ if (0 == strcmp("N2" ,Name)) { (void) atoi(Value); continue;} |
58 |
+ if (0 == strcmp("N3" ,Name)) { (void) atoi(Value); continue;} |
59 |
+ if (0 == strcmp("N4" ,Name)) { (void) atoi(Value); continue;} |
60 |
+ if (0 == strcmp("NBB" ,Name)) { (void) atoi(Value); continue;} |
61 |
+ if (0 == strcmp("NLB" ,Name)) { (void) atoi(Value); continue;} |
62 |
if (0 == strcmp("HOST" ,Name)) {strcpy(HOST ,Value); continue;} |
63 |
if (0 == strcmp("INTFMT" ,Name)) {strcpy(INTFMT ,Value); continue;} |
64 |
if (0 == strcmp("REALFMT",Name)) {strcpy(REALFMT,Value); continue;} |
65 |
@@ -249,7 +236,6 @@ |
66 |
n++; |
67 |
} |
68 |
|
69 |
- VICARpos = n; |
70 |
} |
71 |
|
72 |
/* RLE stuff */ |
73 |
@@ -297,7 +283,7 @@ |
74 |
unsigned char *VICARImage; |
75 |
char *outfname = NULL; |
76 |
int oflag = 0; |
77 |
- int x,y,z; |
78 |
+ int y; |
79 |
long int nread; |
80 |
rle_hdr the_hdr; |
81 |
rle_pixel **rows; |