Remove unneeded ifdef.
[bertos.git] / bertos / net / nmea.c
index 8fe3ad7ea207319c99dc22fd4529165a2893332d..f74879523e9bcf2f543c1520efc4e374e39e19af 100644 (file)
@@ -84,7 +84,7 @@ static uint32_t tokenToInt(const char *s, int precision)
 
        for(i = 0; i < NMEAP_MAX_SENTENCE_LENGTH; i++)
        {
-               char c = *s++;
+               unsigned char c = *s++;
 
                if (c == '.')
                {
@@ -165,9 +165,9 @@ static udegree_t nmea_longitude(const char *plot, const char *phem)
  * Return altitude in meter from a string.
  *
  */
-static uint16_t nmea_altitude(const char *palt, const char *punits)
+static int32_t nmea_altitude(const char *palt, const char *punits)
 {
-       uint32_t alt;
+       int32_t alt;
 
        if (*palt == 0)
                return 0;
@@ -413,7 +413,7 @@ int nmea_gpvtg(nmeap_context_t *context, nmeap_sentence_t *sentence)
         */
        if (sentence->callout != 0)
                (*sentence->callout)(context, vtg, context->user_data);
-       
+
        return NMEA_GPVTG;
 }