Add const to _kdc_set_e_text()
commit2ee8834696f6d5c732f73005de78631005f1f527
authorAndrew Bartlett <abartlet@samba.org>
Wed, 30 Jun 2021 02:40:14 +0000 (30 14:40 +1200)
committerLuke Howard <lukeh@padl.com>
Wed, 30 Jun 2021 02:47:41 +0000 (30 12:47 +1000)
treea5a9e45376191fd68b3c10c2f1c39b189d6f2596
parent8caadcd9fc00730c71bfc0b9a4d5e094f4aa8c69
Add const to _kdc_set_e_text()

On Ubuntu 20.04 with gcc version 9.3.0 in a Samba compile
using -Wdiscarded-qualifiers and -Werror we get:

../../source4/heimdal/kdc/kerberos5.c:2516:21: warning: passing argument 2 of ‘_kdc_set_e_text’ discards ‘const’ qualifier from pointer target type [-Wdiscarded-qualifiers]
 2516 |  _kdc_set_e_text(r, "Client have no reply key");
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~
../../source4/heimdal/kdc/kerberos5.c:428:42: note: expected ‘char *’ but argument is of type ‘const char *’
  428 | _kdc_set_e_text(astgs_request_t r, char *fmt, ...)
      |                                    ~~~~~~^~~

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
kdc/kerberos5.c