#984708 sort.c: fix warnings about missing or wrong prototypes

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-07 14:27:04 UTC
Severity:
normal
Tags:
#984708#5
Date:
2021-03-07 14:24:20 UTC
From:
To:
Dear Maintainer,

  Uncomment a prototype for "order_arrival()", already defined.

  Change prototype of "cmp" from "fct_type cmp" to
  "int (* cmp) (article_header **, article_header **)"

Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
---
 sort.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/sort.c b/sort.c
index c49549d..d9f813e 100644
--- a/sort.c
+++ b/sort.c
@@ -11,6 +11,7 @@
 #include "config.h"
 #include "global.h"
 #include "articles.h"
+#include "sort.h"

 /* sort.c */

@@ -21,7 +22,7 @@ static int      order_date(register article_header ** ah1, register article_head
 static int      order_from_date(register article_header ** ah1, register article_header ** ah2);
 static flag_type article_equal(article_header ** ah1, article_header ** ah2);