X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fresource.c;h=9054b55efaf46e058a145231cf79e4fd462c2e4d;hp=9f119c47d7ff95e6d1a61aa0a3e18027ac0c0d9b;hb=bb3005f9b9fff1333900d8635ad9aeda1021eb94;hpb=bc1a4ee900196f4934a79b434aa3c3ca24e65a23 diff --git a/src/resource.c b/src/resource.c index 9f119c47..9054b55e 100644 --- a/src/resource.c +++ b/src/resource.c @@ -639,7 +639,7 @@ noop_cb(const void *chunk, size_t size, void *_ctx) 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, @@ -1333,7 +1333,7 @@ extract_blob_to_fd(struct blob_descriptor *blob, struct filedes *fd) 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); }