wldap32: Write-strings warning fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Aug 10 17:58:51 CDT 2006
Changelog:
wldap32: Write-strings warning fix.
diff -urN a/dlls/wldap32/ber.c b/dlls/wldap32/ber.c
--- a/dlls/wldap32/ber.c 2006-07-16 15:08:30.000000000 +0100
+++ b/dlls/wldap32/ber.c 2006-08-10 23:10:23.000000000 +0100
@@ -322,7 +322,7 @@
* berelement must have been allocated with ber_alloc_t. This function
* can be called multiple times to append data.
*/
-INT CDECL WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... )
+INT CDECL WLDAP32_ber_printf( BerElement *berelement, LPCSTR fmt, ... )
{
#ifdef HAVE_LDAP
va_list list;
diff -urN a/dlls/wldap32/init.c b/dlls/wldap32/init.c
--- a/dlls/wldap32/init.c 2006-06-13 12:00:21.000000000 +0100
+++ b/dlls/wldap32/init.c 2006-08-10 23:55:51.000000000 +0100
@@ -132,7 +132,7 @@
* 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 @@
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;
diff -urN a/include/winldap.h b/include/winldap.h
--- a/include/winldap.h 2006-06-13 12:00:22.000000000 +0100
+++ b/include/winldap.h 2006-08-10 22:07:22.000000000 +0100
@@ -628,7 +628,7 @@
BerElement* CDECL ber_init(BERVAL*);
ULONG CDECL ber_next_element(BerElement*,ULONG*,CHAR*);
ULONG CDECL ber_peek_tag(BerElement*,ULONG*);
-INT CDECL ber_printf(BerElement*,PCHAR,...);
+INT CDECL ber_printf(BerElement*,LPCSTR,...);
ULONG CDECL ber_skip_tag(BerElement*,ULONG*);
INT CDECL ber_scanf(BerElement*,PCHAR,...);
More information about the wine-patches
mailing list