]> git.pld-linux.org Git - packages/genext2fs.git/blob - genext2fs-blkdev.patch
- tabs in preamble
[packages/genext2fs.git] / genext2fs-blkdev.patch
1 diff -ur genext2fs-1.3/genext2fs.c genext2fs-1.3-/genext2fs.c
2 --- genext2fs-1.3/genext2fs.c   Mon Jun 18 08:11:32 2001
3 +++ genext2fs-1.3-/genext2fs.c  Tue Apr  9 13:28:37 2002
4 @@ -983,7 +983,9 @@
5  {
6         int i;
7         int nblk = nod->i_blocks / INOBLK;
8 -       if((nod->i_size && !nblk) || (nod->i_mode & (FM_IFBLK | FM_IFCHR)))
9 +       if((nod->i_size && !nblk) || 
10 +          (nod->i_mode & FM_IFBLK) == FM_IFBLK ||
11 +          (nod->i_mode & FM_IFCHR) == FM_IFCHR)
12                 for(i = 0; i <= EXT2_TIND_BLOCK; i++)
13                         nod->i_block[i] = swab32(nod->i_block[i]);
14         if(nblk <= EXT2_IND_BLOCK)
15 @@ -1004,7 +1006,9 @@
16  {
17         int i;
18         int nblk = nod->i_blocks / INOBLK;
19 -       if((nod->i_size && !nblk) || (nod->i_mode & (FM_IFBLK | FM_IFCHR)))
20 +       if((nod->i_size && !nblk) ||
21 +          (nod->i_mode & FM_IFBLK) == FM_IFBLK ||
22 +          (nod->i_mode & FM_IFCHR) == FM_IFCHR)
23                 for(i = 0; i <= EXT2_TIND_BLOCK; i++)
24                         nod->i_block[i] = swab32(nod->i_block[i]);
25         if(nblk <= EXT2_IND_BLOCK)
This page took 0.047799 seconds and 3 git commands to generate.