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

Dear Maintainer,

>From 1122632ccd762a88c941c54140e258d7017c3cce Mon Sep 17 00:00:00 2001
>From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
>Date: Sat, 6 Mar 2021 18:31:25 +0000
>Subject: [PATCH] more.c: fix warnings issued by the compiler

more.c: In function 'next_header_field':
more.c:213:5: error: unknown type name 'fct_type'
  213 |     fct_type        attr;
      |     ^~~~~~~~

more.c: In function 'more':
more.c:1492:6: warning: "/*" within comment [-Wcomment]
 1492 |      /* XXX: fall here? */
      |

###

  Change the type of "attr" from "fct_type" to "fct_type_int".

  Change the '*(' to '*/' to finish a comment.

Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is>
---
 more.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/more.c b/more.c
index 1da0317..0cebb20 100644
--- a/more.c
+++ b/more.c
@@ -210,7 +210,7 @@ scan_header_fields(char *fields, article_header * ah)
 int
 next_header_field(char **namep, char **valp, fct_type_int * attrp)
 {
-    fct_type        attr;
+    fct_type_int        attr;
 
     while (*scan_codes) {
        attr = NULL_FCT;
@@ -1488,7 +1488,7 @@ alt_key:
                regular_expr = regcomp(fname);
                match_lines = 0;
            }
-           /* FALLTHROUGH *(
+           /* FALLTHROUGH */
            /* XXX: fall here? */
        case K_NEXT_MATCH:
            if (regular_expr == NULL) {
-- 
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