From: Alan Cox Date: Sat, 30 Sep 2017 19:12:31 +0000 (+0100) Subject: sgetl/sputl: fix silly error X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=2942fbd0d9ae9df7c9ea5631ec555cbabd31b904;p=FUZIX.git sgetl/sputl: fix silly error --- diff --git a/Library/libs/sgetl.c b/Library/libs/sgetl.c index 3bfd2929..a9408ccf 100644 --- a/Library/libs/sgetl.c +++ b/Library/libs/sgetl.c @@ -3,7 +3,7 @@ long sgetl(const char *buffer) { - uint8_t p = (uint8_t *)buffer; + const uint8_t *p = (uint8_t *)buffer; uint32_t r; r = *p++; diff --git a/Library/libs/sputl.c b/Library/libs/sputl.c index 29bca6e5..fca95350 100644 --- a/Library/libs/sputl.c +++ b/Library/libs/sputl.c @@ -3,7 +3,7 @@ void sputl(long value, char *buffer) { - uint8_t p = (uint8_t *)buffer; + uint8_t *p = (uint8_t *)buffer; uint32_t r = (uint32_t)value; *p++ = r;