Quench a few warnings found with gcc-4.2 and clang
On running configure --enable-gcc-warnings with gcc-4.2 on OpenBSD, as well as clang 3.3, has picked up a few things:
- gcc-4.2 complains about discarding constness with TO_ORIGIN_CIRCUIT and TO_OR_CIRCUIT.
- clang complains with -Wshorten-64-to-32 about implicit conversions between time_t and long, and OpenBSD has time_t as an int32_t.
The attached patches add a const version of TO_ORIGIN_CIRCUIT and TO_OR_CIRCUIT, and add explicit casts between long and time_t.
Trac:
Username: _x3j11