src: Drop unused argument "value" from ot_parse_boolean

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano committed 2015-03-06 18:45:38 +01:00
1 parent c70abfd43c
commit ab39f59249
4 files changed
+4 -6

No files matched your search

+1 -2
View File
@@ -25,8 +25,7 @@
#include "ot-tool-util.h" #include "ot-tool-util.h"
gboolean gboolean
ot_parse_boolean (const char *option_name, ot_parse_boolean (const char *value,
const char *value,
gboolean *out_parsed, gboolean *out_parsed,
GError **error) GError **error)
{ {
+1 -2
View File
@@ -25,8 +25,7 @@
G_BEGIN_DECLS G_BEGIN_DECLS
gboolean gboolean
ot_parse_boolean (const char *option_name, ot_parse_boolean (const char *value,
const char *value,
gboolean *out_parsed, gboolean *out_parsed,
GError **error); GError **error);
gboolean gboolean
+1 -1
View File
@@ -47,7 +47,7 @@ parse_fsync_cb (const char *option_name,
{ {
gboolean val; gboolean val;
if (!ot_parse_boolean (option_name, value, &val, error)) if (!ot_parse_boolean (value, &val, error))
return FALSE; return FALSE;
opt_disable_fsync = !val; opt_disable_fsync = !val;
+1 -1
View File
@@ -58,7 +58,7 @@ parse_fsync_cb (const char *option_name,
{ {
gboolean val; gboolean val;
if (!ot_parse_boolean (option_name, value, &val, error)) if (!ot_parse_boolean (value, &val, error))
return FALSE; return FALSE;
opt_disable_fsync = !val; opt_disable_fsync = !val;