1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-18 02:19:39 +00:00

ncurses: Backport a few fixes for GCC warnings from version 6.2-20210220.

This is a direct commit to stable/13.
This commit is contained in:
John Baldwin 2023-05-02 16:38:54 -07:00
parent f5db29b8ce
commit d854d81222
2 changed files with 2 additions and 2 deletions

View File

@ -67,7 +67,7 @@ MODULE_ID("$Id: lib_screen.c,v 1.97 2020/02/02 23:34:34 tom Exp $")
* format. It happens to be unused in the file 5.22 database (2015/03/07).
*/
static const char my_magic[] =
{'\210', '\210', '\210', '\210'};
{'\210', '\210', '\210', '\210', 0};
#if NCURSES_EXT_PUTWIN
typedef enum {

View File

@ -341,7 +341,7 @@ parse_format(const char *s, char *format, int *len)
* may be cases that we cannot see the explicit parameter numbers.
*/
NCURSES_EXPORT(int)
_nc_tparm_analyze(const char *string, char *p_is_s[NUM_PARM], int *popcount)
_nc_tparm_analyze(const char *string, char **p_is_s, int *popcount)
{
size_t len2;
int i;