]> wimlib.net Git - wimlib/blobdiff - src/resource.c
Constify some data
[wimlib] / src / resource.c
index 9f119c47d7ff95e6d1a61aa0a3e18027ac0c0d9b..9054b55efaf46e058a145231cf79e4fd462c2e4d 100644 (file)
@@ -639,7 +639,7 @@ noop_cb(const void *chunk, size_t size, void *_ctx)
 int
 skip_wim_resource(const struct wim_resource_descriptor *rdesc)
 {
 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,
                .func = noop_cb,
        };
        return read_partial_wim_resource(rdesc, 0,
@@ -1333,7 +1333,7 @@ extract_blob_to_fd(struct blob_descriptor *blob, struct filedes *fd)
 int
 sha1_blob(struct blob_descriptor *blob)
 {
 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);
 }
        };
        return read_blob_with_sha1(blob, &cbs);
 }