[PATCH 1/2] tweak ldl_version member decl

Stephen Powell zlinuxman at wowway.com
Thu Nov 25 14:52:21 GMT 2010


* include/parted/vtoc.h [struct ldl_volume_label] (ldl_version):
Declare as array of length 1, not as a scalar.
---
 include/parted/vtoc.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/parted/vtoc.h b/include/parted/vtoc.h
index 5ed40b5..d79ce39 100644
--- a/include/parted/vtoc.h
+++ b/include/parted/vtoc.h
@@ -102,7 +102,7 @@ struct __attribute__ ((packed)) ldl_volume_label {
 	char vollbl[4];         /* Label identifier ("LNX1" in EBCDIC)       */
         char volid[6];          /* Volume identifier                         */
         char res3[69];          /* Reserved field                            */
-        char ldl_version;       /* Version number, valid for ldl format      */
+        char ldl_version[1];    /* Version number, valid for ldl format      */
         u_int64_t formatted_blocks;  /* valid when ldl_version >= "2" (in
                                         EBCDIC)                              */
 };
--
1.7.3.2.765.g642a8




More information about the Parted-maintainers mailing list