static void
print_available_compression_types(FILE *fp)
{
- static const tchar *s =
+ static const tchar * const s =
T(
"Available compression types:\n"
"\n"
#endif
-static const tchar *usage_strings[] = {
+static const tchar * const usage_strings[] = {
[CMD_APPEND] =
T(
" %"TS" " SOURCE_STR " WIMFILE [IMAGE_NAME [IMAGE_DESC]]\n"
static void
version(void)
{
- static const tchar *s =
+ static const tchar * const s =
T(
"wimlib-imagex (distributed with " PACKAGE " " PACKAGE_VERSION ")\n"
"Copyright (C) 2012-2016 Eric Biggers\n"
print_usage_string(cmd, fp);
tfprintf(fp, T("\n"));
}
- static const tchar *extra =
+ static const tchar * const extra =
T(
" %"TS" --help\n"
" %"TS" --version\n"
size_t max_block_size;
};
-static const struct compressor_ops *compressor_ops[] = {
+static const struct compressor_ops * const compressor_ops[] = {
[WIMLIB_COMPRESSION_TYPE_XPRESS] = &xpress_compressor_ops,
[WIMLIB_COMPRESSION_TYPE_LZX] = &lzx_compressor_ops,
[WIMLIB_COMPRESSION_TYPE_LZMS] = &lzms_compressor_ops,
void *private;
};
-static const struct decompressor_ops *decompressor_ops[] = {
+static const struct decompressor_ops * const decompressor_ops[] = {
[WIMLIB_COMPRESSION_TYPE_XPRESS] = &xpress_decompressor_ops,
[WIMLIB_COMPRESSION_TYPE_LZX] = &lzx_decompressor_ops,
[WIMLIB_COMPRESSION_TYPE_LZMS] = &lzms_decompressor_ops,
return ret;
}
-static struct fuse_operations wimfs_operations = {
+static const struct fuse_operations wimfs_operations = {
.chmod = wimfs_chmod,
.chown = wimfs_chown,
.fgetattr = wimfs_fgetattr,
int
skip_wim_resource(const struct wim_resource_descriptor *rdesc)
{
- struct consume_chunk_callback cb = {
+ static const struct consume_chunk_callback cb = {
.func = noop_cb,
};
return read_partial_wim_resource(rdesc, 0,
int
sha1_blob(struct blob_descriptor *blob)
{
- struct read_blob_callbacks cbs = {
+ static const struct read_blob_callbacks cbs = {
};
return read_blob_with_sha1(blob, &cbs);
}
/* Hard-coded list of files which the Windows bootloader may need to access
* before the WOF driver has been loaded. */
-static wchar_t *bootloader_pattern_strings[] = {
+static const wchar_t * const bootloader_pattern_strings[] = {
L"*winload.*",
L"*winresume.*",
L"\\Windows\\AppPatch\\drvmain.sdb",
};
static const struct string_list bootloader_patterns = {
- .strings = bootloader_pattern_strings,
+ .strings = (wchar_t **)bootloader_pattern_strings,
.num_strings = ARRAY_LEN(bootloader_pattern_strings),
};