[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH] shell: lang_en



From: Max Reitz <max@xxxxxxxxxx>

* -Werror mag es nicht, wenn bei der Initialisierung von Strukturen
  in einem Array keine eigenen Klammern verwendet werden.

Signed-off-by: Max Reitz <max@xxxxxxxxxx>
---
 src/modules/c/shell/lang/lang_en.c |   58 +++++++++++++++++++++++------------
 1 files changed, 38 insertions(+), 20 deletions(-)

diff --git a/src/modules/c/shell/lang/lang_en.c b/src/modules/c/shell/lang/lang_en.c
index d9cb5fe..f209955 100644
--- a/src/modules/c/shell/lang/lang_en.c
+++ b/src/modules/c/shell/lang/lang_en.c
@@ -35,34 +35,52 @@ static int get_number(int n)
 }
 
 static const struct tms_strings dict[] = {
-    &__tms_cmd_exec_not_found,
-    "Command not found",
+    {
+        &__tms_cmd_exec_not_found,
+        "Command not found"
+    },
 
-    &__tms_cmd_start_not_found,
-    "Executable not found",
+    {
+        &__tms_cmd_start_not_found,
+        "Executable not found"
+    },
 
-    &__tms_cmd_start_usage,
-    "Usage: start <path> [arguments ...]",
+    {
+        &__tms_cmd_start_usage,
+        "Usage: start <path> [arguments ...]"
+    },
 
-    &__tms_cmd_cd_error,
-    "Cannot change to directory '%s'\n",
+    {
+        &__tms_cmd_cd_error,
+        "Cannot change to directory '%s'\n"
+    },
 
-    &__tms_cmd_cd_usage,
-    "Usage: cd <directory>",
+    {
+        &__tms_cmd_cd_usage,
+        "Usage: cd <directory>"
+    },
 
-    &__tms_cmd_source_error,
-    "Cannot execute script '%s'\n",
+    {
+        &__tms_cmd_source_error,
+        "Cannot execute script '%s'\n"
+    },
 
-    &__tms_cmd_source_usage,
-    "Usage: source <path>",
+    {
+        &__tms_cmd_source_usage,
+        "Usage: source <path>"
+    },
 
-    &__tms_cmd_set_usage,
-    "\nUsage: set [-d] [<variable>] [<value>]\n"
-    "  -d: Set a default value. If the variable is already set, its value is\n"
-    "      not changed\n",
+    {
+        &__tms_cmd_set_usage,
+        "\nUsage: set [-d] [<variable>] [<value>]\n"
+        "  -d: Set a default value. If the variable is already set, its value is\n"
+        "      not changed\n"
+    },
 
-    0,
-    0,
+    {
+        0,
+        0
+    },
 };
 
 static const struct tms_lang lang = {
-- 
1.7.1