opkg

statically linked package installer
git clone anongit@rnpnr.xyz:opkg.git
Log | Files | Refs | Feed | Submodules | README | LICENSE

0043-nc-Use-explicit-cast-for-pointer-sign-conversion.patch (823B)


      1 From bcaddae8de94a8d2d448a287b42a75a7306999b7 Mon Sep 17 00:00:00 2001
      2 From: Michael Forney <mforney@mforney.org>
      3 Date: Sun, 17 May 2026 01:40:40 -0700
      4 Subject: [PATCH] nc: Use explicit cast for pointer sign conversion
      5 
      6 ---
      7  usr.bin/nc/netcat.c | 2 +-
      8  1 file changed, 1 insertion(+), 1 deletion(-)
      9 
     10 diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
     11 index 982b65592fe..82f1686fa6f 100644
     12 --- a/usr.bin/nc/netcat.c
     13 +++ b/usr.bin/nc/netcat.c
     14 @@ -1763,7 +1763,7 @@ save_peer_cert(struct tls *tls_ctx, FILE *fp)
     15  	const char *pem;
     16  	size_t plen;
     17  
     18 -	if ((pem = tls_peer_cert_chain_pem(tls_ctx, &plen)) == NULL)
     19 +	if ((pem = (char *)tls_peer_cert_chain_pem(tls_ctx, &plen)) == NULL)
     20  		errx(1, "Can't get peer certificate");
     21  	if (fprintf(fp, "%.*s", (int)plen, pem) < 0)
     22  		err(1, "unable to save peer cert");
     23 -- 
     24 2.54.0
     25