summaryrefslogtreecommitdiff
path: root/src/ostree/ot-builtin-config.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-05-26 14:35:34 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2017-05-26 19:27:11 +0000
commit88a1fc92a9937fafd195d70abc80a30be64fc136 (patch)
treea49fb1b62005e6a48e18b0385a6ba03906246dc1 /src/ostree/ot-builtin-config.c
parent9bf8a8503afa5cc7acacc8203490330292da7f85 (diff)
downloadostree-88a1fc92a9937fafd195d70abc80a30be64fc136.tar.gz
tree-wide: Add+run spatch to use glnx_throw()
I had to run a sed job to add whitespace after, but otherwise this was easy. Closes: #890 Approved by: jlebon
Diffstat (limited to 'src/ostree/ot-builtin-config.c')
-rw-r--r--src/ostree/ot-builtin-config.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ostree/ot-builtin-config.c b/src/ostree/ot-builtin-config.c
index 0d8f7b77..a9a5f52a 100644
--- a/src/ostree/ot-builtin-config.c
+++ b/src/ostree/ot-builtin-config.c
@@ -41,9 +41,8 @@ split_key_string (const char *k,
if (!dot)
{
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_FAILED,
- "Key must be of the form \"sectionname.keyname\"");
- return FALSE;
+ return glnx_throw (error,
+ "Key must be of the form \"sectionname.keyname\"");
}
*out_section = g_strndup (k, dot - k);