xfs
[Top] [All Lists]

xfsprogs 2.8.4 log_misc.c patch

To: xfs@xxxxxxxxxxx
Subject: xfsprogs 2.8.4 log_misc.c patch
From: Craig Rodrigues <rodrigc@xxxxxxxxxxxxxx>
Date: Fri, 7 Jul 2006 14:29:36 -0400
Cc: nathans@xxxxxxx
Sender: xfs-bounce@xxxxxxxxxxx
User-agent: Mutt/1.4.2.1i
Hi,

I'm not sure what to do about other platforms,
but on FreeBSD, I could not compile this
file in xfsprogs 2.8.4 without this patch:

Index: log_misc.c
===================================================================
RCS file: /cvs/xfs-cmds/xfsprogs/logprint/log_misc.c,v
retrieving revision 1.21
diff -u -u -r1.21 log_misc.c
--- log_misc.c  16 Jun 2006 03:52:27 -0000      1.21
+++ log_misc.c  7 Jul 2006 18:28:07 -0000
@@ -1530,7 +1530,7 @@
                in_f->ilf_dsize = in_f32->ilf_dsize;
                in_f->ilf_ino = in_f32->ilf_ino;
                /* copy biggest */
-               memcpy(in_f->ilf_u.ilfu_uuid, in_f32->ilf_u.ilfu_uuid, 
sizeof(uuid_t));
+               memcpy(&in_f->ilf_u.ilfu_uuid, &in_f32->ilf_u.ilfu_uuid, 
sizeof(uuid_t));
                in_f->ilf_blkno = in_f32->ilf_blkno;
                in_f->ilf_len = in_f32->ilf_len;
                in_f->ilf_boffset = in_f32->ilf_boffset;
@@ -1546,7 +1546,7 @@
                in_f->ilf_dsize = in_f64->ilf_dsize;
                in_f->ilf_ino = in_f64->ilf_ino;
                /* copy biggest */
-               memcpy(in_f->ilf_u.ilfu_uuid, in_f64->ilf_u.ilfu_uuid, 
sizeof(uuid_t));
+               memcpy(&in_f->ilf_u.ilfu_uuid, &in_f64->ilf_u.ilfu_uuid, 
sizeof(uuid_t));
                in_f->ilf_blkno = in_f64->ilf_blkno;
                in_f->ilf_len = in_f64->ilf_len;
                in_f->ilf_boffset = in_f64->ilf_boffset;



-- 
Craig Rodrigues        
rodrigc@xxxxxxxxxxxxxx


<Prev in Thread] Current Thread [Next in Thread>