From ab39f592493d8c7151a31f9982f009dd870dd093 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Fri, 6 Mar 2015 12:53:43 +0100 Subject: [PATCH] src: Drop unused argument "value" from ot_parse_boolean Signed-off-by: Giuseppe Scrivano --- src/libotutil/ot-tool-util.c | 3 +-- src/libotutil/ot-tool-util.h | 3 +-- src/ostree/ot-builtin-checkout.c | 2 +- src/ostree/ot-builtin-commit.c | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/libotutil/ot-tool-util.c b/src/libotutil/ot-tool-util.c index 57e0d0c0..95b2e061 100644 --- a/src/libotutil/ot-tool-util.c +++ b/src/libotutil/ot-tool-util.c @@ -25,8 +25,7 @@ #include "ot-tool-util.h" gboolean -ot_parse_boolean (const char *option_name, - const char *value, +ot_parse_boolean (const char *value, gboolean *out_parsed, GError **error) { diff --git a/src/libotutil/ot-tool-util.h b/src/libotutil/ot-tool-util.h index 74d69ce0..7d318173 100644 --- a/src/libotutil/ot-tool-util.h +++ b/src/libotutil/ot-tool-util.h @@ -25,8 +25,7 @@ G_BEGIN_DECLS gboolean -ot_parse_boolean (const char *option_name, - const char *value, +ot_parse_boolean (const char *value, gboolean *out_parsed, GError **error); gboolean diff --git a/src/ostree/ot-builtin-checkout.c b/src/ostree/ot-builtin-checkout.c index b6d150ab..39d9afce 100644 --- a/src/ostree/ot-builtin-checkout.c +++ b/src/ostree/ot-builtin-checkout.c @@ -47,7 +47,7 @@ parse_fsync_cb (const char *option_name, { gboolean val; - if (!ot_parse_boolean (option_name, value, &val, error)) + if (!ot_parse_boolean (value, &val, error)) return FALSE; opt_disable_fsync = !val; diff --git a/src/ostree/ot-builtin-commit.c b/src/ostree/ot-builtin-commit.c index 79ee77c3..cfe48a42 100644 --- a/src/ostree/ot-builtin-commit.c +++ b/src/ostree/ot-builtin-commit.c @@ -58,7 +58,7 @@ parse_fsync_cb (const char *option_name, { gboolean val; - if (!ot_parse_boolean (option_name, value, &val, error)) + if (!ot_parse_boolean (value, &val, error)) return FALSE; opt_disable_fsync = !val;