You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by wr...@apache.org on 2001/10/02 22:00:54 UTC
cvs commit: httpd-2.0/modules/metadata mod_unique_id.c
wrowe 01/10/02 13:00:54
Modified: modules/metadata mod_unique_id.c
Log:
Clean up a couple of type warnings.
Revision Changes Path
1.30 +2 -2 httpd-2.0/modules/metadata/mod_unique_id.c
Index: mod_unique_id.c
===================================================================
RCS file: /home/cvs/httpd-2.0/modules/metadata/mod_unique_id.c,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -r1.29 -r1.30
--- mod_unique_id.c 2001/08/19 05:48:19 1.29
+++ mod_unique_id.c 2001/10/02 20:00:54 1.30
@@ -270,7 +270,7 @@
* 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 @@
/* 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