opkg

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

0012-setprogname-Explicitly-discard-const-qualifier.patch (666B)


      1 From 7cc3b8b8b1ca390b6ed65d3234827bc7393f9300 Mon Sep 17 00:00:00 2001
      2 From: Michael Forney <mforney@mforney.org>
      3 Date: Sun, 11 Dec 2016 14:36:13 -0800
      4 Subject: [PATCH] setprogname: Explicitly discard const qualifier
      5 
      6 ---
      7  lib/libc/gen/setprogname.c | 2 +-
      8  1 file changed, 1 insertion(+), 1 deletion(-)
      9 
     10 diff --git a/lib/libc/gen/setprogname.c b/lib/libc/gen/setprogname.c
     11 index bce4cbdac44..0c1573c9162 100644
     12 --- a/lib/libc/gen/setprogname.c
     13 +++ b/lib/libc/gen/setprogname.c
     14 @@ -27,5 +27,5 @@ setprogname(const char *progname)
     15  	if (tmpn == NULL)
     16  		__progname = (char *)progname;
     17  	else
     18 -		__progname = tmpn + 1;
     19 +		__progname = (char *)tmpn + 1;
     20  }
     21 -- 
     22 2.14.2
     23