From: William A. Rowe Jr Date: Tue, 2 Oct 2001 20:00:54 +0000 (+0000) Subject: Clean up a couple of type warnings. X-Git-Tag: 2.0.26~125 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f39e60750ac85c2bb7de00342681c0dc0f927e3d;p=thirdparty%2Fapache%2Fhttpd.git Clean up a couple of type warnings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91241 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/metadata/mod_unique_id.c b/modules/metadata/mod_unique_id.c index cb953f5ee5a..28e153e6bdd 100644 --- a/modules/metadata/mod_unique_id.c +++ b/modules/metadata/mod_unique_id.c @@ -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