Skip to content

Commit 7125776

Browse files
committed
Merge pull request #6 from mdaus/bandsource-variable-order
Moved the variable declarations to the top of functions
2 parents 022f0ba + 4d85ad1 commit 7125776

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/c/nitf/source/BandSource.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ NITFPRIV(NITF_BOOL) MemorySource_offsetRead(
7272
nitf_Off size,
7373
nitf_Error* error)
7474
{
75-
(void) error;
7675
size_t destOffset = 0;
7776
const nitf_Uint8* const src = (const nitf_Uint8*)memorySource->data;
7877
nitf_Uint8* const dest = (nitf_Uint8*)buf;
78+
(void) error;
7979

8080
while (destOffset < (size_t)size)
8181
{
@@ -125,8 +125,8 @@ NITFPRIV(void) MemorySource_destruct(NITF_DATA * data)
125125

126126
NITFPRIV(nitf_Off) MemorySource_getSize(NITF_DATA * data, nitf_Error* error)
127127
{
128-
(void) error;
129128
MemorySourceImpl *memorySource = (MemorySourceImpl *) data;
129+
(void) error;
130130
return memorySource ? memorySource->size : 0;
131131
}
132132

@@ -226,8 +226,8 @@ NITFPRIV(void) FileSource_destruct(NITF_DATA * data)
226226

227227
NITFPRIV(nitf_Off) IOSource_getSize(NITF_DATA * data, nitf_Error* error)
228228
{
229-
(void) error;
230229
IOSourceImpl *source = (IOSourceImpl *) data;
230+
(void) error;
231231
return source ? (nitf_Off)source->size : 0;
232232
}
233233

0 commit comments

Comments
 (0)