I attached the wrong patch to my bug report, sorry. 

The correct patch is the following one.

Regards
Andreas Jochens

diff -urN ../tmp-orig/xfsprogs-2.6.26/db/agf.h ./db/agf.h
--- ../tmp-orig/xfsprogs-2.6.26/db/agf.h        2003-04-29 08:08:41.000000000 
+0200
+++ ./db/agf.h  2005-03-20 14:09:40.000000000 +0100
@@ -30,10 +30,5 @@
  * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  */
 
-struct field;
-
-extern const struct field      agf_flds[];
-extern const struct field      agf_hfld[];
-
 extern void    agf_init(void);
 extern int     agf_size(void *obj, int startoff, int idx);
diff -urN ../tmp-orig/xfsprogs-2.6.26/db/agfl.h ./db/agfl.h
--- ../tmp-orig/xfsprogs-2.6.26/db/agfl.h       2003-04-29 08:08:41.000000000 
+0200
+++ ./db/agfl.h 2005-03-20 14:09:47.000000000 +0100
@@ -30,10 +30,5 @@
  * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  */
 
-struct field;
-
-extern const struct field      agfl_flds[];
-extern const struct field      agfl_hfld[];
-
 extern void    agfl_init(void);
 extern int     agfl_size(void *obj, int startoff, int idx);
diff -urN ../tmp-orig/xfsprogs-2.6.26/db/agi.h ./db/agi.h
--- ../tmp-orig/xfsprogs-2.6.26/db/agi.h        2003-04-29 08:08:41.000000000 
+0200
+++ ./db/agi.h  2005-03-20 14:10:22.000000000 +0100
@@ -30,10 +30,5 @@
  * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  */
 
-struct field;
-
-extern const struct field      agi_flds[];
-extern const struct field      agi_hfld[];
-
 extern void    agi_init(void);
 extern int     agi_size(void *obj, int startoff, int idx);
diff -urN ../tmp-orig/xfsprogs-2.6.26/db/dquot.h ./db/dquot.h
--- ../tmp-orig/xfsprogs-2.6.26/db/dquot.h      2003-04-29 08:08:43.000000000 
+0200
+++ ./db/dquot.h        2005-03-20 14:11:14.000000000 +0100
@@ -30,10 +30,4 @@
  * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  */
 
-struct field;
-
-extern const struct field      disk_dquot_flds[];
-extern const struct field      dqblk_flds[];
-extern const struct field      dqblk_hfld[];
-
 extern void    dquot_init(void);
diff -urN ../tmp-orig/xfsprogs-2.6.26/db/field.c ./db/field.c
--- ../tmp-orig/xfsprogs-2.6.26/db/field.c      2003-05-01 08:00:50.000000000 
+0200
+++ ./db/field.c        2005-03-20 14:10:32.000000000 +0100
@@ -54,6 +54,10 @@
 #include "dir2.h"
 #include "dir2sf.h"
 
+extern const struct field agf_flds[], agfl_flds[], agi_flds[], inode_a_flds[],
+ inode_core_flds[], inode_u_flds[], disk_dquot_flds[], dqblk_flds[],
+ inode_flds[], sb_flds[], timestamp_flds[];
+
 const ftattr_t ftattrtab[] = {
        { FLDT_AEXTNUM, "aextnum", fp_num, "%d", SI(bitsz(xfs_aextnum_t)),
          FTARG_SIGNED, NULL, NULL },
diff -urN ../tmp-orig/xfsprogs-2.6.26/db/inode.h ./db/inode.h
--- ../tmp-orig/xfsprogs-2.6.26/db/inode.h      2003-04-29 08:08:45.000000000 
+0200
+++ ./db/inode.h        2005-03-20 14:10:06.000000000 +0100
@@ -30,13 +30,6 @@
  * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  */
 
-extern const struct field      inode_a_flds[];
-extern const struct field      inode_core_flds[];
-extern const struct field      inode_flds[];
-extern const struct field      inode_hfld[];
-extern const struct field      inode_u_flds[];
-extern const struct field      timestamp_flds[];
-
 extern int     fp_dinode_fmt(void *obj, int bit, int count, char *fmtstr,
                              int size, int arg, int base, int array);
 extern int     inode_a_size(void *obj, int startoff, int idx);
diff -urN ../tmp-orig/xfsprogs-2.6.26/db/sb.h ./db/sb.h
--- ../tmp-orig/xfsprogs-2.6.26/db/sb.h 2004-06-18 10:08:40.000000000 +0200
+++ ./db/sb.h   2005-03-20 14:11:29.000000000 +0100
@@ -30,11 +30,6 @@
  * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/
  */
 
-struct field;
-
-extern const struct field      sb_flds[];
-extern const struct field      sb_hfld[];
-
 extern void    sb_init(void);
 extern int     sb_logcheck(void);
 extern int     sb_size(void *obj, int startoff, int idx);
diff -urN ../tmp-orig/xfsprogs-2.6.26/db/type.c ./db/type.c
--- ../tmp-orig/xfsprogs-2.6.26/db/type.c       2003-05-01 08:00:51.000000000 
+0200
+++ ./db/type.c 2005-03-20 14:10:41.000000000 +0100
@@ -64,6 +64,9 @@
 static const typ_t     *findtyp(char *name);
 static int             type_f(int argc, char **argv);
 
+extern const struct field agf_hfld[], agfl_hfld[], agi_hfld[], dqblk_hfld[], 
+ inode_hfld[], sb_hfld[];
+
 const typ_t    *cur_typ;
 
 static const cmdinfo_t type_cmd =


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to