fix missing time() argument
[mod-proxy-fdpass.git] / mod_proxy_fdpass2.c
index ba1c678..3b2afb4 100644 (file)
@@ -262,6 +262,7 @@ static apr_status_t send_socket(apr_pool_t *p,
         write(mop_fd, mop_bf, strlen(mop_bf));
         close(mop_fd);
     }
+#endif
 
     if (rv == -1) {
         return errno;
@@ -413,9 +414,9 @@ static int proxy_fdpass2_handler(request_rec *r, proxy_worker *worker,
     rv = get_socket_from_path(r, r->pool, url, &sock);
 
 #if ALTOUT_DEBUG > 0
-    time_t t_cur;
+    long long t_cur;
     int t_rnd;
-    t_cur = time();
+    t_cur = (long long)time(NULL);
     t_rnd = rand();
 #endif