Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/lib/libwrap



    Date:        Fri, 4 Oct 2024 08:37:20 +0000
    From:        "Roland Illig" <rillig%netbsd.org@localhost>
    Message-ID:  <20241004083720.A09DFFC7E%cvs.NetBSD.org@localhost>

  | lib/libwrap/expandm.c(57): warning: call to 'strstr' effectively
  | discards 'const' from argument [346]

Pity, I always considered p = strchr(cp, cp[0]); (where cp is const char *
and is not NULL) as being a nice way to get an unqualified (not const)
version of cp...

But I see that S23 (if not earlier) has expressly made that non-standard.
How the old traditions fall...

kre



Home | Main Index | Thread Index | Old Index