Commit 96b6d335 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

wldap32: Write-strings warnings fix.

parent c62f428d
......@@ -373,7 +373,8 @@ INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... )
{
char *str = va_arg( list, char * );
int len = va_arg( list, int );
ret = ber_printf( berelement, "B" /* 'X' is deprecated */, str, len );
new_fmt[0] = 'B'; /* 'X' is deprecated */
ret = ber_printf( berelement, new_fmt, str, len );
break;
}
case 'n':
......
......@@ -132,7 +132,7 @@ static int has_ldap_scheme( char *url )
* Prepend a given scheme and append a given portnumber to each hostname
* if necessary.
*/
static char *join_hostnames( char *scheme, char **hostnames, ULONG portnumber )
static char *join_hostnames( const char *scheme, char **hostnames, ULONG portnumber )
{
char *res, *p, *q, **v;
unsigned int i = 0, size = 0;
......@@ -196,7 +196,7 @@ static char *join_hostnames( char *scheme, char **hostnames, ULONG portnumber )
return res;
}
static char *urlify_hostnames( char *scheme, char *hostnames, ULONG port )
static char *urlify_hostnames( const char *scheme, char *hostnames, ULONG port )
{
char *url = NULL, **strarray;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment