mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-04-22 23:02:03 -04:00
auth-pam: fix discards 'const' qualifier from pointer target type
strstr now returns const char*.
Change-Id: I632368451923116e0a169ddb5b6e86a8f8486afc
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1543
Message-Id: <20260218214712.27119-1-gert@greenie.muc.de>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg35728.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
(cherry picked from commit eeaedd1362)
This commit is contained in:
parent
188d3d6885
commit
2fd42e6d1d
1 changed files with 1 additions and 2 deletions
|
|
@ -66,12 +66,11 @@ searchandreplace(const char *tosearch, const char *searchfor, const char *replac
|
|||
/* state: all parameters are valid */
|
||||
|
||||
const char *searching = tosearch;
|
||||
char *scratch;
|
||||
|
||||
char temp[templen + 1];
|
||||
temp[0] = 0;
|
||||
|
||||
scratch = strstr(searching, searchfor);
|
||||
const char *scratch = strstr(searching, searchfor);
|
||||
if (!scratch)
|
||||
{
|
||||
return strdup(tosearch);
|
||||
|
|
|
|||
Loading…
Reference in a new issue