_ostree_static_delta_part_validate: Take a stream instead of a file as arg

This is only called in one place, and we have already opened the file there,
no need to open it twice.
This commit is contained in:
Alexander Larsson authored and Colin Walters committed 2015-09-13 22:25:21 -04:00
1 parent 27fcf68e7c
commit fd6c572c42
3 files changed
+4 -9

No files matched your search

@@ -104,7 +104,7 @@ G_BEGIN_DECLS
#define OSTREE_STATIC_DELTA_SUPERBLOCK_FORMAT "(a{sv}tayay" OSTREE_COMMIT_GVARIANT_STRING "aya" OSTREE_STATIC_DELTA_META_ENTRY_FORMAT "a" OSTREE_STATIC_DELTA_FALLBACK_FORMAT ")"
gboolean _ostree_static_delta_part_validate (OstreeRepo *repo,
GFile *part_path,
GInputStream *in,
guint part_offset,
const char *expected_checksum,
GCancellable *cancellable,