rpms/mod_auth_ntlm_winbind/devel mod_auth_ntlm_winbind-20070129-64bit.patch, NONE, 1.1 mod_auth_ntlm_winbind.spec, 1.1, 1.2

Dmitry Butskoy (buc) fedora-extras-commits at redhat.com
Fri Jun 22 14:26:49 UTC 2007


Author: buc

Update of /cvs/extras/rpms/mod_auth_ntlm_winbind/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29412

Modified Files:
	mod_auth_ntlm_winbind.spec 
Added Files:
	mod_auth_ntlm_winbind-20070129-64bit.patch 
Log Message:


mod_auth_ntlm_winbind-20070129-64bit.patch:

--- NEW FILE mod_auth_ntlm_winbind-20070129-64bit.patch ---
diff -Nrbu mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c mod_auth_ntlm_winbind-OK/mod_auth_ntlm_winbind.c
--- mod_auth_ntlm_winbind/mod_auth_ntlm_winbind.c	2007-06-22 17:47:51.000000000 +0400
+++ mod_auth_ntlm_winbind-OK/mod_auth_ntlm_winbind.c	2007-06-22 17:47:20.000000000 +0400
@@ -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);
 


Index: mod_auth_ntlm_winbind.spec
===================================================================
RCS file: /cvs/extras/rpms/mod_auth_ntlm_winbind/devel/mod_auth_ntlm_winbind.spec,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mod_auth_ntlm_winbind.spec	22 Jun 2007 12:13:18 -0000	1.1
+++ mod_auth_ntlm_winbind.spec	22 Jun 2007 14:26:13 -0000	1.2
@@ -4,7 +4,7 @@
 Summary: NTLM authentication for the Apache web server using winbind daemon
 Name: mod_auth_ntlm_winbind
 Version: 0.0.0
-Release: 0.2.%{svn}%{?dist}
+Release: 0.5.%{svn}%{?dist}
 Group: System Environment/Daemons
 License: Apache Software License
 URL: http://viewcvs.samba.org/cgi-bin/viewcvs.cgi/trunk/mod_auth_ntlm_winbind/?root=lorikeet
@@ -29,6 +29,7 @@
 Requires(post): shadow-utils
 
 Patch0: mod_auth_ntlm_winbind-20060510-connect_http10.patch
+Patch1: mod_auth_ntlm_winbind-20070129-64bit.patch
 
 
 %description
@@ -44,6 +45,7 @@
 %prep
 %setup -q -n mod_auth_ntlm_winbind
 %patch0 -p1
+%patch1 -p1
 autoconf
 
 
@@ -81,6 +83,9 @@
 
 
 %changelog
+* Fri Jun 22 2007 Dmitry Butskoy <Dmitry at Butskoy.name> 0.0.0-0.5.20070129svn713
+- avoid gcc warnings on 64 bit systems
+
 * Wed Jun 20 2007 Dmitry Butskoy <Dmitry at Butskoy.name> 0.0.0-0.2.20070129svn713
 - spec file cleanup
 - accepted for Fedora (review by Jason Tibbitts <tibbs at math.uh.edu>)




More information about the fedora-extras-commits mailing list