Fix warnings on new compilers.
[bertos.git] / bertos / net / nmea.c
index d232c73adfa253de40069cfff4797c081884d905..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 == '.')
                {
@@ -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;
 }