From 22e753176e62d3c7377ccb2e51108191a4b41d9d Mon Sep 17 00:00:00 2001 From: David Shea Date: Sat, 17 Jun 2017 12:08:41 -0400 Subject: [PATCH] lib/repo: Fix annotations for out parameters Change the annotation of the out parameters on ostree_repo_load_file from `(allow-none)` to `(optional) (nullable)`. `allow-none` is ambiguous, since these parameters can be both NULL on input and set to NULL on return. Closes: #939 Approved by: cgwalters --- src/libostree/ostree-repo.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c index 49251284..e556e464 100644 --- a/src/libostree/ostree-repo.c +++ b/src/libostree/ostree-repo.c @@ -2618,9 +2618,9 @@ _ostree_repo_read_bare_fd (OstreeRepo *self, * ostree_repo_load_file: * @self: Repo * @checksum: ASCII SHA256 checksum - * @out_input: (out) (allow-none): File content - * @out_file_info: (out) (allow-none): File information - * @out_xattrs: (out) (allow-none): Extended attributes + * @out_input: (out) (optional) (nullable): File content + * @out_file_info: (out) (optional) (nullable): File information + * @out_xattrs: (out) (optional) (nullable): Extended attributes * @cancellable: Cancellable * @error: Error *