#984659 more.c: fix warnings issued by the compiler

Package:
src:nn
Source:
nn
Submitter:
Bjarni Ingi Gislason
Date:
2021-03-06 18:42:04 UTC
Severity:
normal
Tags:
#984659#5
Date:
2021-03-06 18:38:19 UTC
From:
To:
Dear Maintainer,

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 <bjarniig@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) {