[ostree] src: Drop unused argument "value" from ot_parse_boolean
- From: Giuseppe Scrivano <gscrivano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] src: Drop unused argument "value" from ot_parse_boolean
- Date: Fri, 6 Mar 2015 17:46:55 +0000 (UTC)
commit ab39f592493d8c7151a31f9982f009dd870dd093
Author: Giuseppe Scrivano <gscrivan redhat com>
Date: Fri Mar 6 12:53:43 2015 +0100
src: Drop unused argument "value" from ot_parse_boolean
Signed-off-by: Giuseppe Scrivano <gscrivan redhat com>
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 57e0d0c..95b2e06 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 74d69ce..7d31817 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 b6d150a..39d9afc 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 79ee77c..cfe48a4 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]