agent: Fix capital letter for mandatory requirement
authorSantiago Carot-Nemesio <sancane@gmail.com>
Mon, 13 Feb 2012 17:43:05 +0000 (18:43 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 13 Feb 2012 18:24:32 +0000 (19:24 +0100)
Sometimes, the mandatory attribute is used with capital letter and
other times it isn't. This patch fixes this issue by setting it to
lower case to be consistant with agent-doc in wich it is written
using lower cases.

src/agent.c

index 9c789cf..a24c209 100644 (file)
@@ -227,7 +227,7 @@ static void request_input_append_identity(DBusMessageIter *iter,
 
        connman_dbus_dict_append_basic(iter, "Type",
                                DBUS_TYPE_STRING, &str);
-       str = "Mandatory";
+       str = "mandatory";
        connman_dbus_dict_append_basic(iter, "Requirement",
                                DBUS_TYPE_STRING, &str);
 }
@@ -263,7 +263,7 @@ static void request_input_append_passphrase(DBusMessageIter *iter,
        }
        connman_dbus_dict_append_basic(iter, "Type",
                                DBUS_TYPE_STRING, &value);
-       value = "Mandatory";
+       value = "mandatory";
        connman_dbus_dict_append_basic(iter, "Requirement",
                                DBUS_TYPE_STRING, &value);
 
@@ -319,7 +319,7 @@ static void request_input_append_password(DBusMessageIter *iter,
 
        connman_dbus_dict_append_basic(iter, "Type",
                                DBUS_TYPE_STRING, &str);
-       str = "Mandatory";
+       str = "mandatory";
        connman_dbus_dict_append_basic(iter, "Requirement",
                                DBUS_TYPE_STRING, &str);
 }