Source: nn Version: 6.7.3-14 Severity: normal Tags: patch Dear Maintainer,
>From ec3335894e2b46e27f9d9c9602f2f6c0754178dc Mon Sep 17 00:00:00 2001 >From: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> >Date: Sun, 7 Mar 2021 16:59:33 +0000 >Subject: [PATCH] save.c: define _POSIX_C_SOURCE and change a type for a > cast Define _POSIX_C_SOURCE for "popen()" and "pclose()". Change type "fct_type" to "fct_type_int" for "NULL" as the last argument to "next_header_field()". Signed-off-by: Bjarni Ingi Gislason <bjarn...@rhi.hi.is> --- save.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/save.c b/save.c index 38f07a9..b276de6 100644 --- a/save.c +++ b/save.c @@ -5,6 +5,11 @@ * Save (or print) articles */ +/* feature_test_macros(7) for "popen()" and "pclose()"; are in <stdio.h> */ +#ifndef _POSIX_C_SOURCE +#define _POSIX_C_SOURCE 200809L +#endif + #include <unistd.h> #include <signal.h> #include <errno.h> @@ -581,7 +586,7 @@ save(article_header * ah) } else if (mode == SHORT_HEADER || mode == SHORT_HEADER_DG) { char *name, *val; scan_header_fields(short_header_lines, ah); - while (next_header_field(&name, &val, (fct_type *) NULL)) { + while (next_header_field(&name, &val, (fct_type_int *) NULL)) { if (name == NULL) continue; fprintf(save_file, "%s: %s\n", name, val); -- 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