@@ -197,14 +197,14 @@ static __initdata enum state {
197
197
} state , next_state ;
198
198
199
199
static __initdata char * victim ;
200
- static unsigned long count __initdata ;
200
+ static unsigned long byte_count __initdata ;
201
201
static __initdata loff_t this_header , next_header ;
202
202
203
203
static inline void __init eat (unsigned n )
204
204
{
205
205
victim += n ;
206
206
this_header += n ;
207
- count -= n ;
207
+ byte_count -= n ;
208
208
}
209
209
210
210
static __initdata char * vcollected ;
@@ -214,7 +214,7 @@ static __initdata char *collect;
214
214
215
215
static void __init read_into (char * buf , unsigned size , enum state next )
216
216
{
217
- if (count >= size ) {
217
+ if (byte_count >= size ) {
218
218
collected = victim ;
219
219
eat (size );
220
220
state = next ;
@@ -237,8 +237,8 @@ static int __init do_start(void)
237
237
static int __init do_collect (void )
238
238
{
239
239
unsigned long n = remains ;
240
- if (count < n )
241
- n = count ;
240
+ if (byte_count < n )
241
+ n = byte_count ;
242
242
memcpy (collect , victim , n );
243
243
eat (n );
244
244
collect += n ;
@@ -280,8 +280,8 @@ static int __init do_header(void)
280
280
281
281
static int __init do_skip (void )
282
282
{
283
- if (this_header + count < next_header ) {
284
- eat (count );
283
+ if (this_header + byte_count < next_header ) {
284
+ eat (byte_count );
285
285
return 1 ;
286
286
} else {
287
287
eat (next_header - this_header );
@@ -292,9 +292,9 @@ static int __init do_skip(void)
292
292
293
293
static int __init do_reset (void )
294
294
{
295
- while (count && * victim == '\0' )
295
+ while (byte_count && * victim == '\0' )
296
296
eat (1 );
297
- if (count && (this_header & 3 ))
297
+ if (byte_count && (this_header & 3 ))
298
298
error ("broken padding" );
299
299
return 1 ;
300
300
}
@@ -309,11 +309,11 @@ static int __init maybe_link(void)
309
309
return 0 ;
310
310
}
311
311
312
- static void __init clean_path (char * path , umode_t mode )
312
+ static void __init clean_path (char * path , umode_t fmode )
313
313
{
314
314
struct stat st ;
315
315
316
- if (!sys_newlstat (path , & st ) && (st .st_mode ^ mode ) & S_IFMT ) {
316
+ if (!sys_newlstat (path , & st ) && (st .st_mode ^ fmode ) & S_IFMT ) {
317
317
if (S_ISDIR (st .st_mode ))
318
318
sys_rmdir (path );
319
319
else
@@ -368,7 +368,7 @@ static int __init do_name(void)
368
368
369
369
static int __init do_copy (void )
370
370
{
371
- if (count >= body_len ) {
371
+ if (byte_count >= body_len ) {
372
372
if (xwrite (wfd , victim , body_len ) != body_len )
373
373
error ("write error" );
374
374
sys_close (wfd );
@@ -378,10 +378,10 @@ static int __init do_copy(void)
378
378
state = SkipIt ;
379
379
return 0 ;
380
380
} else {
381
- if (xwrite (wfd , victim , count ) != count )
381
+ if (xwrite (wfd , victim , byte_count ) != byte_count )
382
382
error ("write error" );
383
- body_len -= count ;
384
- eat (count );
383
+ body_len -= byte_count ;
384
+ eat (byte_count );
385
385
return 1 ;
386
386
}
387
387
}
@@ -411,12 +411,12 @@ static __initdata int (*actions[])(void) = {
411
411
412
412
static long __init write_buffer (char * buf , unsigned long len )
413
413
{
414
- count = len ;
414
+ byte_count = len ;
415
415
victim = buf ;
416
416
417
417
while (!actions [state ]())
418
418
;
419
- return len - count ;
419
+ return len - byte_count ;
420
420
}
421
421
422
422
static long __init flush_buffer (void * bufv , unsigned long len )
0 commit comments