apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r744519 - in /apr/apr/trunk/poll/unix: pollcb.c pollset.c
Date Sat, 14 Feb 2009 16:46:21 GMT
Author: mturk
Date: Sat Feb 14 16:46:20 2009
New Revision: 744519

URL: http://svn.apache.org/viewvc?rev=744519&view=rev
Log:
Fix compile time warnings by adding missing enum checks

Modified:
    apr/apr/trunk/poll/unix/pollcb.c
    apr/apr/trunk/poll/unix/pollset.c

Modified: apr/apr/trunk/poll/unix/pollcb.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/pollcb.c?rev=744519&r1=744518&r2=744519&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/pollcb.c (original)
+++ apr/apr/trunk/poll/unix/pollcb.c Sat Feb 14 16:46:20 2009
@@ -75,6 +75,9 @@
                 provider = apr_pollcb_provider_poll;
 #endif
             break;
+            case APR_POLLSET_SELECT:
+            case APR_POLLSET_DEFAULT:
+            break;
         }
         if (!provider) {
             *pollcb = NULL;
@@ -120,6 +123,9 @@
                 provider = apr_pollcb_provider_poll;
 #endif
             break;
+            case APR_POLLSET_SELECT:
+            case APR_POLLSET_DEFAULT:
+            break;
         }
         if (!provider)
             return APR_ENOTIMPL;

Modified: apr/apr/trunk/poll/unix/pollset.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/poll/unix/pollset.c?rev=744519&r1=744518&r2=744519&view=diff
==============================================================================
--- apr/apr/trunk/poll/unix/pollset.c (original)
+++ apr/apr/trunk/poll/unix/pollset.c Sat Feb 14 16:46:20 2009
@@ -190,6 +190,8 @@
             case APR_POLLSET_SELECT:
                 provider = apr_pollset_provider_select;
             break;
+            case APR_POLLSET_DEFAULT:
+            break;
         }
         if (!provider) {
             if ((flags & APR_POLLSET_NODEFAULT) == APR_POLLSET_NODEFAULT)
@@ -243,6 +245,8 @@
             case APR_POLLSET_SELECT:
                 provider = apr_pollset_provider_select;
             break;
+            case APR_POLLSET_DEFAULT:
+            break;
         }
         if (!provider)
             return APR_ENOTIMPL;
@@ -297,6 +301,8 @@
         case APR_POLLSET_SELECT:
             return apr_pollset_provider_select->name;
         break;
+        case APR_POLLSET_DEFAULT:
+        break;
     }
     return "unknown";
 }



Mime
View raw message