src: Drop unused argument "value" from ot_parse_boolean

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2015-03-06 12:53:43 +01:00
parent c70abfd43c
commit ab39f59249
4 changed files with 4 additions and 6 deletions

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)
{ {

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

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;

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;