]> err.no Git - linux-2.6/commitdiff
[PATCH] reiserfs: fix up case where indent misreads the code
authorJeff Mahoney <jeffm@suse.com>
Tue, 12 Jul 2005 23:19:30 +0000 (19:19 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 12 Jul 2005 23:22:35 +0000 (16:22 -0700)
 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 <jeffm@suse.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/reiserfs/item_ops.c

index 0ce33db1acdf064fe001ca78333731a8bb272898..e477aeba8c924c192cb00c9a1ce5ec7d21ea2b33 100644 (file)
@@ -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] = {