]> granicus.if.org Git - apache/commitdiff
Clean up a couple of type warnings.
authorWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 2 Oct 2001 20:00:54 +0000 (20:00 +0000)
committerWilliam A. Rowe Jr <wrowe@apache.org>
Tue, 2 Oct 2001 20:00:54 +0000 (20:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91241 13f79535-47bb-0310-9956-ffa450edef68

modules/metadata/mod_unique_id.c

index cb953f5ee5afb61fdf30804d622a7288dcc5a6cf..28e153e6bddbc0e22deea85889bda6222e5bb2b6 100644 (file)
@@ -270,7 +270,7 @@ static void unique_id_child_init(apr_pool_t *p, server_rec *s)
      * of them.  It would have been really nice to test this during
      * global_init ... but oh well.
      */
-    if (cur_unique_id.pid != pid) {
+    if ((pid_t)cur_unique_id.pid != pid) {
         ap_log_error(APLOG_MARK, APLOG_NOERRNO|APLOG_CRIT, 0, s,
                     "oh no! pids are greater than 32-bits!  I'm broken!");
     }
@@ -286,7 +286,7 @@ static void unique_id_child_init(apr_pool_t *p, server_rec *s)
     /* Some systems have very low variance on the low end of their system
      * counter, defend against that.
      */
-    cur_unique_id.counter = tv % APR_USEC_PER_SEC / 10;
+    cur_unique_id.counter = (unsigned short)(tv % APR_USEC_PER_SEC / 10);
 
     /*
      * We must always use network ordering for these bytes, so that