From 6d132b546dde4e5ff81c5be8545f56e3bef598b1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Fri, 9 May 2008 08:06:50 +0000 Subject: [PATCH] complete the previous change --- src/storage_backend_fs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/storage_backend_fs.c b/src/storage_backend_fs.c index b41b952309..36f1fb8d83 100644 --- a/src/storage_backend_fs.c +++ b/src/storage_backend_fs.c @@ -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, -- 2.47.2