Source: nn
Version: 6.7.3-14
Severity: normal
Tags: patch

Dear Maintainer,

>From 409e79fa03fb04a8dadb9480ce75ca3dc49bc932 Mon Sep 17 00:00:00 2001
>From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
>Date: Fri, 19 Feb 2021 21:53:28 +0000
>Subject: [PATCH] init.c: add missing braces around initializer

  Warning from the compiler:

init.c:315:34: warning: missing braces around initializer
[-Wmissing-braces]

Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
---
 init.c | 101 +++++++++++++++++++++++++++++----------------------------
 1 file changed, 51 insertions(+), 50 deletions(-)

diff --git a/init.c b/init.c
index f90349f..676bc85 100644
--- a/init.c
+++ b/init.c
@@ -314,56 +314,57 @@ static struct alt_commands {
     int             alt_type;
 }               alt_commands[] = {
 
-    "admin", 5, 0,
-    "bug", 3, 0,
-    "cd", 2, 1,
-    "compile", 7, 0,
-    "coredump", 8, 0,
-    "cost", 4, 0,
-    "decode", 6, 0,
-    "define", 6, 0,
-    "help", 4, 2,
-    "load", 4, 0,
-    "local", 5, 3,
-    "lock", 4, 3,
-    "make", 4, -1,
-    "make map ", 9, -2,
-    "man", 3, 0,
-    "map", 3, 4,
-    "mkdir", 5, 1,
-    "motd", 4, 0,
-    "patch", 5, 0,             /* QUICK HACK */
-    "post", 4, 0,              /* QUICK HACK */
-    "print", 5, -3,            /* QUICK HACK */
-    "print-variables", 15, 0,
-    "pwd", 3, 0,
-    "rmail", 5, 0,
-    "set", 3, 3,
-    "show", 4, -1,
-    "show config", 11, 0,
-    "show groups", 11, -1,
-    "show groups all", 15, 0,
-    "show groups subscr", 18, 0,
-    "show groups total", 17, 0,
-    "show groups unsub", 17, 0,
-    "show kill", 9, 0,
-    "show map", 8, -1,
-    "show map #", 10, 0,
-    "show map key", 12, 0,
-    "show map menu", 13, 0,
-    "show map show", 13, 0,
-    "show rc ", 8, 0,
-    "sort", 4, -1,
-    "sort arrival", 12, 0,
-    "sort date", 9, 0,
-    "sort lexical", 12, 0,
-    "sort sender", 11, 0,
-    "sort subject", 12, 0,
-    "toggle", 6, 3,
-    "unread", 6, 0,
-    "unset", 5, 3,
-    "unshar", 6, 0,            /* QUICK HACK */
-    NULL, 0, 0
+    {"admin", 5, 0},
+    {"bug", 3, 0},
+    {"cd", 2, 1},
+    {"compile", 7, 0},
+    {"coredump", 8, 0},
+    {"cost", 4, 0},
+    {"decode", 6, 0},
+    {"define", 6, 0},
+    {"help", 4, 2},
+    {"load", 4, 0},
+    {"local", 5, 3},
+    {"lock", 4, 3},
+    {"make", 4, -1},
+    {"make map ", 9, -2},
+    {"man", 3, 0},
+    {"map", 3, 4},
+    {"mime", 4, 0},            /* QUICK HACK */
+    {"mkdir", 5, 1},
+    {"motd", 4, 0},
+    {"patch", 5, 0},           /* QUICK HACK */
+    {"post", 4, 0},            /* QUICK HACK */
+    {"print", 5, -3},          /* QUICK HACK */
+    {"print-variables", 15, 0},
+    {"pwd", 3, 0},
+    {"rmail", 5, 0},
+    {"set", 3, 3},
+    {"show", 4, -1},
+    {"show config", 11, 0},
+    {"show groups", 11, -1},
+    {"show groups all", 15, 0},
+    {"show groups subscr", 18, 0},
+    {"show groups total", 17, 0},
+    {"show groups unsub", 17, 0},
+    {"show kill", 9, 0},
+    {"show map", 8, -1},
+    {"show map #", 10, 0},
+    {"show map key", 12, 0},
+    {"show map menu", 13, 0},
+    {"show map show", 13, 0},
+    {"show rc ", 8, 0},
+    {"sort", 4, -1},
+    {"sort arrival", 12, 0},
+    {"sort date", 9, 0},
+    {"sort lexical", 12, 0},
+    {"sort sender", 11, 0},
+    {"sort subject", 12, 0},
+    {"toggle", 6, 3},
+    {"unread", 6, 0},
+    {"unset", 5, 3},
+    {"unshar", 6, 0},          /* QUICK HACK */
+    {NULL, 0, 0}
 };
 
 int
-- 
2.30.0


-- System Information:
Debian Release: bullseye/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.9-1 (SMP w/2 CPU threads)
Locale: LANG=is_IS.iso88591, LC_CTYPE=is_IS.iso88591 (charmap=ISO-8859-1), 
LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

-- debconf information excluded

-- 
Bjarni I. Gislason

Reply via email to