]> xenbits.xensource.com Git - libvirt.git/commitdiff
complete the previous change
authorJim Meyering <meyering@redhat.com>
Fri, 9 May 2008 08:06:50 +0000 (08:06 +0000)
committerJim Meyering <meyering@redhat.com>
Fri, 9 May 2008 08:06:50 +0000 (08:06 +0000)
src/storage_backend_fs.c

index b41b95230969c7ffb33ddc59b4b1a04ee82cacaf..36f1fb8d830bfaeb09f5516fb59e2e4e2d93feb6 100644 (file)
@@ -79,7 +79,7 @@ enum {
 };
 
 /* Either 'magic' or 'extension' *must* be provided */
-static const struct {
+struct FileTypeInfo {
     int type;           /* One of the constants above */
     const char *magic;  /* Optional string of file magic
                          * to check at head of file */
@@ -94,7 +94,8 @@ static const struct {
                            * -1 to use st_size as capacity */
     int sizeBytes;        /* Number of bytes for size field */
     int sizeMultiplier;   /* A scaling factor if size is not in bytes */
-} fileTypeInfo[] = {
+};
+const struct FileTypeInfo const fileTypeInfo[] = {
     /* Bochs */
     /* XXX Untested
     { VIR_STORAGE_VOL_BOCHS, "Bochs Virtual HD Image", NULL,