svn commit: lorikeet r782 - in trunk/mod_auth_ntlm_winbind: .
jerry at samba.org
jerry at samba.org
Thu Nov 8 15:22:10 GMT 2007
Author: jerry
Date: 2007-11-08 15:22:10 +0000 (Thu, 08 Nov 2007)
New Revision: 782
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=lorikeet&rev=782
Log:
Clean up compile warnings on 64-bit architectures.
Patch from Dmitry Butskoy <buc at odusz.so-cdu.ru>.
Modified:
trunk/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c
Changeset:
Modified: trunk/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c
===================================================================
--- trunk/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c 2007-08-10 07:00:21 UTC (rev 781)
+++ trunk/mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c 2007-11-08 15:22:10 UTC (rev 782)
@@ -495,7 +495,7 @@
char *newline;
char args_to_helper[HUGE_STRING_LEN];
char args_from_helper[HUGE_STRING_LEN];
- unsigned int bytes_written;
+ size_t bytes_written;
int bytes_read;
if (( global_ntlm_context.ntlm_plaintext_helper = get_auth_helper( r, global_ntlm_context.ntlm_plaintext_helper, crec->ntlm_plaintext_helper, CLEANUP(cleanup_ntlm_plaintext_helper))) == NULL ) {
@@ -539,7 +539,7 @@
#endif
if ( bytes_written < strlen( args_to_helper )) {
- RDEBUG( "failed to write user/pass to helper - wrote %d bytes", bytes_written );
+ RDEBUG( "failed to write user/pass to helper - wrote %d bytes", (int) bytes_written );
apr_pool_destroy( global_ntlm_context.ntlm_plaintext_helper->pool );
apr_pool_destroy( ctxt->connected_user_authenticated->pool );
return HTTP_INTERNAL_SERVER_ERROR;
@@ -624,7 +624,7 @@
char args_to_helper[HUGE_STRING_LEN];
char args_from_helper[HUGE_STRING_LEN];
ntlm_connection_context_t *ctxt = get_connection_context( r->connection );
- unsigned int bytes_written;
+ size_t bytes_written;
int bytes_read;
struct _ntlm_auth_helper *auth_helper;
@@ -690,7 +690,7 @@
bytes_written = ap_bwrite(auth_helper->out_to_helper, args_to_helper, strlen(args_to_helper));
#endif
if (bytes_written < strlen(args_to_helper)) {
- RDEBUG("failed to write NTLMSSP string to helper - wrote %d bytes", bytes_written);
+ RDEBUG("failed to write NTLMSSP string to helper - wrote %d bytes", (int) bytes_written);
apr_pool_destroy(auth_helper->pool);
apr_pool_destroy(ctxt->connected_user_authenticated->pool);
More information about the samba-cvs
mailing list