Skip to content

Commit

Permalink
[PATCH] reiserfs: fix up case where indent misreads the code
Browse files Browse the repository at this point in the history
 indent(1) doesn't know how to handle the "do not compile" error. It results
 in the item_ops array declaration being indented a tab stop in when it should
 not be. This patch replaces it with a #error that describes why it's failing.

Signed-off-by: Jeff Mahoney <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
jeffmahoney authored and Linus Torvalds committed Jul 12, 2005
1 parent d5e404c commit 7fa94c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/reiserfs/item_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -772,7 +772,7 @@ static struct item_operations errcatch_ops = {
//
//
#if ! (TYPE_STAT_DATA == 0 && TYPE_INDIRECT == 1 && TYPE_DIRECT == 2 && TYPE_DIRENTRY == 3)
do not compile
#error Item types must use disk-format assigned values.
#endif

struct item_operations * item_ops [TYPE_ANY + 1] = {
Expand Down

0 comments on commit 7fa94c8

Please sign in to comment.