From 21cd286cd4bcc7a42269d3b6d97870b9f12eddb0 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 14 Sep 2025 13:43:16 +0200 Subject: [PATCH] Reacted on compiler warnings of Debian 13 Sid about IsoStreamIface.type --- libisofs/eltorito.c | 4 ++-- libisofs/filters/external.c | 2 +- libisofs/filters/gzip.c | 4 ++-- libisofs/filters/zisofs.c | 4 ++-- libisofs/stream.c | 8 ++++---- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/libisofs/eltorito.c b/libisofs/eltorito.c index 6cd6b52..fb3d04e 100644 --- a/libisofs/eltorito.c +++ b/libisofs/eltorito.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2010 - 2024 Thomas Schmitt + * Copyright (c) 2010 - 2025 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -1149,7 +1149,7 @@ void catalog_free(IsoStream *stream) IsoStreamIface catalog_stream_class = { 0, - "boot", + {'b', 'o', 'o', 't'}, catalog_open, catalog_close, catalog_get_size, diff --git a/libisofs/filters/external.c b/libisofs/filters/external.c index 1fe2781..91e2455 100644 --- a/libisofs/filters/external.c +++ b/libisofs/filters/external.c @@ -637,7 +637,7 @@ int extf_cmp_ino(IsoStream *s1, IsoStream *s2); IsoStreamIface extf_stream_class = { 4, - "extf", + {'e', 'x', 't', 'f'}, extf_stream_open, extf_stream_close, extf_stream_get_size, diff --git a/libisofs/filters/gzip.c b/libisofs/filters/gzip.c index 4af2c5e..b2177c6 100644 --- a/libisofs/filters/gzip.c +++ b/libisofs/filters/gzip.c @@ -579,7 +579,7 @@ int gzip_uncompress_cmp_ino(IsoStream *s1, IsoStream *s2); IsoStreamIface gzip_stream_compress_class = { 4, - "gzip", + {'g', 'z', 'i', 'p'}, gzip_stream_open, gzip_stream_close, gzip_stream_get_size, @@ -596,7 +596,7 @@ IsoStreamIface gzip_stream_compress_class = { IsoStreamIface gzip_stream_uncompress_class = { 4, - "pizg", + {'p', 'i', 'z', 'g'}, gzip_stream_open, gzip_stream_close, gzip_stream_get_size, diff --git a/libisofs/filters/zisofs.c b/libisofs/filters/zisofs.c index 54c110d..2848b59 100644 --- a/libisofs/filters/zisofs.c +++ b/libisofs/filters/zisofs.c @@ -1282,7 +1282,7 @@ int ziso_uncompress_cmp_ino(IsoStream *s1, IsoStream *s2); IsoStreamIface ziso_stream_compress_class = { 4, - "ziso", + {'z', 'i', 's', 'o'}, ziso_stream_open, ziso_stream_close, ziso_stream_get_size, @@ -1299,7 +1299,7 @@ IsoStreamIface ziso_stream_compress_class = { IsoStreamIface ziso_stream_uncompress_class = { 4, - "osiz", + {'o', 's', 'i', 'z'}, ziso_stream_open, ziso_stream_close, ziso_stream_get_size, diff --git a/libisofs/stream.c b/libisofs/stream.c index 6362b95..0fe2e0e 100644 --- a/libisofs/stream.c +++ b/libisofs/stream.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2007 Vreixo Formoso - * Copyright (c) 2009 - 2022 Thomas Schmitt + * Copyright (c) 2009 - 2025 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -210,7 +210,7 @@ int fsrc_clone_stream(IsoStream *old_stream, IsoStream **new_stream, static IsoStreamIface fsrc_stream_class = { 4, /* version */ - "fsrc", + {'f', 's', 'r', 'c'}, fsrc_open, fsrc_close, fsrc_get_size, @@ -498,7 +498,7 @@ int cut_out_clone_stream(IsoStream *old_stream, IsoStream **new_stream, static IsoStreamIface cut_out_stream_class = { 4, /* version */ - "cout", + {'c', 'o', 'u', 't'}, cut_out_open, cut_out_close, cut_out_get_size, @@ -742,7 +742,7 @@ int mem_clone_stream(IsoStream *old_stream, IsoStream **new_stream, static IsoStreamIface mem_stream_class = { 4, /* version */ - "mem ", + {'m', 'e', 'm', ' '}, mem_open, mem_close, mem_get_size,