diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-09-01 18:15:01 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2006-09-01 18:15:01 +0000 |
commit | 300c914c64953e3f27120fc454e75926943badf5 (patch) | |
tree | 4e89214ae41d505ee46fe60e04d922b3090976d7 /cpukit/libnetworking/libc | |
parent | 2006-09-01 Joel Sherrill <joel@OARcorp.com> (diff) | |
download | rtems-300c914c64953e3f27120fc454e75926943badf5.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'cpukit/libnetworking/libc')
-rw-r--r-- | cpukit/libnetworking/libc/res_debug.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/cpukit/libnetworking/libc/res_debug.c b/cpukit/libnetworking/libc/res_debug.c index 4ea4aec144..7dc54694ef 100644 --- a/cpukit/libnetworking/libc/res_debug.c +++ b/cpukit/libnetworking/libc/res_debug.c @@ -545,8 +545,8 @@ p_time(u_int32_t value) { * by 60*60*1000 for that. */ -static unsigned int poweroften[10] = {1, 10, 100, 1000, 10000, 100000, - 1000000,10000000,100000000,1000000000}; +static uint32_t poweroften[10] = {1, 10, 100, 1000, 10000, 100000, + 1000000,10000000,100000000,1000000000}; /* takes an XeY precision/size value, returns a string representation. */ static const char * @@ -555,7 +555,7 @@ precsize_ntoa(prec) { static char retbuf[sizeof "90000000.00"]; unsigned long val; - int mantissa, exponent; + uint32_t mantissa, exponent; mantissa = (int)((prec >> 4) & 0x0f) % 10; exponent = (int)((prec >> 0) & 0x0f) % 10; @@ -664,13 +664,13 @@ latlon2ul(latlonstrptr,which) switch (*cp) { case 'N': case 'n': case 'E': case 'e': - retval = ((unsigned)1<<31) + retval = ((u_int32_t)1<<31) + (((((deg * 60) + min) * 60) + secs) * 1000) + secsfrac; break; case 'S': case 's': case 'W': case 'w': - retval = ((unsigned)1<<31) + retval = ((u_int32_t)1<<31) - (((((deg * 60) + min) * 60) + secs) * 1000) - secsfrac; break; @@ -853,10 +853,10 @@ loc_ntoa(binary, ascii) vpval = *cp++; GETLONG(templ, cp); - latval = (templ - ((unsigned)1<<31)); + latval = (templ - ((u_int32_t)1<<31)); GETLONG(templ, cp); - longval = (templ - ((unsigned)1<<31)); + longval = (templ - ((u_int32_t)1<<31)); GETLONG(templ, cp); if (templ < referencealt) { /* below WGS 84 spheroid */ |