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

Dear Maintainer,

>From b7537ae4483b8e158ccc4b4510cdff98e5ae5150 Mon Sep 17 00:00:00 2001
>From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
>Date: Sun, 7 Mar 2021 14:12:42 +0000
>Subject: [PATCH] sort.c: fix warnings about missing or wrong prototypes

  Add header file "sort.h".

  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 <bjarn...@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);
 
-static int      order_arrival();
+/*static int      order_arrival();*/ /* Already defined some lines above this 
one */
 
 #ifdef BAD_ORDER_SUBJ_DATE
 /* If one article's subject is identical to the first part of another
@@ -248,7 +249,7 @@ sort_articles(int mode)
     register article_header **app;
     register long   n;
     register flag_type same;
-    fct_type        cmp;
+    int        (* cmp) (article_header **, article_header **);
 
     if (n_articles <= 0)
        return;
-- 
2.30.1



-- 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