#984675 group.c: fix some warnings issued by the compiler and add other changes.

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-06 21:57:04 UTC
Severity:
normal
Tags:
#984675#5
Date:
2021-03-06 21:55:28 UTC
From:
To:
Dear Maintainer,

  Change the name of the variable "NDELAYED_MSG" to lower case
"ndelayed_msg".

  Fix the declaration of the last parameter of the function
"group_menu()" from "fct_type menu" to "int (* menu) (fct_type_void)".

  Use "snprintf()" instead of "sprintf()".

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 group.c | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/group.c b/group.c
index 8819d52..44fd67f 100644
--- a/group.c
+++ b/group.c
@@ -14,6 +14,7 @@
 #include "articles.h"
 #include "db.h"
 #include "folder.h"
+#include "group.h"
 #include "macro.h"
 #include "match.h"
 #include "menu.h"
@@ -52,7 +53,7 @@ extern int      killed_articles;
 extern int      seq_cross_filtering;
 extern char    *default_save_file, *folder_save_file;