ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/fcrackzip/crack.c
(Generate patch)

Comparing fcrackzip/crack.c (file contents):
Revision 1.1 by root, Mon Aug 4 07:09:50 2008 UTC vs.
Revision 1.2 by root, Thu Oct 9 07:45:07 2008 UTC

22static u8 mult_tab[16384]; 22static u8 mult_tab[16384];
23 23
24static u32 24static u32
25fgetu32 (FILE * f) 25fgetu32 (FILE * f)
26{ 26{
27 return (fgetc (f) << 0) | 27 register u32 r;
28 (fgetc (f) << 8) | 28
29 (fgetc (f) << 16) | 29 r = fgetc(f) << 0;
30 r |= fgetc(f) << 8;
31 r |= fgetc(f) << 16;
30 (fgetc (f) << 24); 32 r |= fgetc(f) << 24;
33
34 return r;
31} 35}
32 36
33static u32 37static u32
34fgetu16 (FILE * f) 38fgetu16 (FILE * f)
35{ 39{
36 return (fgetc (f) << 0) | 40 register u32 r;
41
42 r = fgetc(f) << 0;
37 (fgetc (f) << 8); 43 r |= fgetc(f) << 8;
44
45 return r;
38} 46}
39 47
40static void 48static void
41load_zip (const char *path) 49load_zip (const char *path)
42{ 50{

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines