]> granicus.if.org Git - apache/commitdiff
fix one error message, eliminate another that will never
authorJeff Trawick <trawick@apache.org>
Sun, 19 Sep 2010 20:47:38 +0000 (20:47 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 19 Sep 2010 20:47:38 +0000 (20:47 +0000)
be issued (since !n occurs when status != APR_SUCCESS)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@998726 13f79535-47bb-0310-9956-ffa450edef68

support/ab.c

index c78a66df232276f795067b8d35d1d41a47c1f606..69f8312aa0d4b4f15ef57db70bb4d4336996041b 100644 (file)
@@ -1735,11 +1735,7 @@ static void test(void)
             status = apr_pollset_poll(readbits, aprtimeout, &n, &pollresults);
         } while (APR_STATUS_IS_EINTR(status));
         if (status != APR_SUCCESS)
-            apr_err("apr_poll", status);
-
-        if (!n) {
-            err("\nServer timed out\n\n");
-        }
+            apr_err("apr_pollset_poll", status);
 
         for (i = 0; i < n; i++) {
             const apr_pollfd_t *next_fd = &(pollresults[i]);