apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rpl...@apache.org
Subject svn commit: r663342 - in /apr/apr/trunk: atomic/unix/solaris.c passwd/apr_getpass.c poll/unix/port.c
Date Wed, 04 Jun 2008 19:02:23 GMT
Author: rpluem
Date: Wed Jun  4 12:02:23 2008
New Revision: 663342

URL: http://svn.apache.org/viewvc?rev=663342&view=rev
Log:
* Fix some gcc compiler warnings on Solaris

Modified:
    apr/apr/trunk/atomic/unix/solaris.c
    apr/apr/trunk/passwd/apr_getpass.c
    apr/apr/trunk/poll/unix/port.c

Modified: apr/apr/trunk/atomic/unix/solaris.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/atomic/unix/solaris.c?rev=663342&r1=663341&r2=663342&view=diff
==============================================================================
--- apr/apr/trunk/atomic/unix/solaris.c (original)
+++ apr/apr/trunk/atomic/unix/solaris.c Wed Jun  4 12:02:23 2008
@@ -68,7 +68,7 @@
 
 APR_DECLARE(void*) apr_atomic_casptr(volatile void **mem, void *with, const void *cmp)
 {
-    return atomic_cas_ptr(mem, cmp, (void*) with);
+    return atomic_cas_ptr(mem, (void*) cmp, with);
 }
 
 APR_DECLARE(void*) apr_atomic_xchgptr(volatile void **mem, void *with)

Modified: apr/apr/trunk/passwd/apr_getpass.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/passwd/apr_getpass.c?rev=663342&r1=663341&r2=663342&view=diff
==============================================================================
--- apr/apr/trunk/passwd/apr_getpass.c (original)
+++ apr/apr/trunk/passwd/apr_getpass.c Wed Jun  4 12:02:23 2008
@@ -70,7 +70,7 @@
 
 #define ERR_OVERFLOW 5
 
-#ifndef HAVE_GETPASS
+#if !defined(HAVE_GETPASS) && !defined(HAVE_GETPASSPHRASE)
 
 /* MPE, Win32, NetWare and BeOS all lack a native getpass() */
 

Modified: apr/apr/trunk/poll/unix/port.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/port.c?rev=663342&r1=663341&r2=663342&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/port.c (original)
+++ apr/apr/trunk/poll/unix/port.c Wed Jun  4 12:02:23 2008
@@ -264,7 +264,7 @@
     pfd_elem_t *ep;
     apr_status_t rv = APR_SUCCESS;
     int res;
-    int err;
+    int err = 0;
 
     pollset_lock_rings();
 



Mime
View raw message