]> git.pld-linux.org Git - packages/genext2fs.git/blame - genext2fs-blkdev.patch
- tabs in preamble
[packages/genext2fs.git] / genext2fs-blkdev.patch
CommitLineData
fbb8efea
MM
1diff -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.064839 seconds and 4 git commands to generate.