diff options
author | Phaedrus Leeds <mwleeds@protonmail.com> | 2021-10-26 18:43:06 -0700 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2021-10-27 10:58:38 +0100 |
commit | 89876b1a8de958c434cd591b5be4122c80a41e61 (patch) | |
tree | f58868a09740eb8208ab71bd7ef5057f04860b5c /tests/test-update-portal.c | |
parent | f4d94d81a8f8cb63a9b96bd385ceeca11c13c376 (diff) | |
download | flatpak-89876b1a8de958c434cd591b5be4122c80a41e61.tar.gz |
test-update-portal: Fix warn_unused_result warning
Diffstat (limited to 'tests/test-update-portal.c')
-rw-r--r-- | tests/test-update-portal.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test-update-portal.c b/tests/test-update-portal.c index 8c8f4466..f283f182 100644 --- a/tests/test-update-portal.c +++ b/tests/test-update-portal.c @@ -77,7 +77,9 @@ static void write_status (int res, int status_pipe) { char c = res; - write (status_pipe, &c, 1); + const ssize_t write_ret = write (status_pipe, &c, 1); + if (write_ret < 0) + g_printerr ("write_status() failed with %zd\n", write_ret); } typedef int (*TestCallback) (PortalFlatpak *portal, int status_pipe); |