aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/lib/streams
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-02-02 11:28:34 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-02-02 11:28:34 +0000
commitfed649d56c3433b9cb8460e3622456c3ccebd2ac (patch)
tree86fd8546692e624793eb3f50fdfadbf4d3b74897 /os/hal/lib/streams
parent07fc57b2c8e748cacfc80a319127224dbba4c3a5 (diff)
downloadChibiOS-fed649d56c3433b9cb8460e3622456c3ccebd2ac.tar.gz
ChibiOS-fed649d56c3433b9cb8460e3622456c3ccebd2ac.tar.bz2
ChibiOS-fed649d56c3433b9cb8460e3622456c3ccebd2ac.zip
Fixed potential name conflicts.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10079 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/lib/streams')
-rw-r--r--os/hal/lib/streams/memstreams.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/os/hal/lib/streams/memstreams.c b/os/hal/lib/streams/memstreams.c
index e8c561576..d949d1674 100644
--- a/os/hal/lib/streams/memstreams.c
+++ b/os/hal/lib/streams/memstreams.c
@@ -43,7 +43,7 @@
/* Driver local functions. */
/*===========================================================================*/
-static size_t writes(void *ip, const uint8_t *bp, size_t n) {
+static size_t _writes(void *ip, const uint8_t *bp, size_t n) {
MemoryStream *msp = ip;
if (msp->size - msp->eos < n)
@@ -53,7 +53,7 @@ static size_t writes(void *ip, const uint8_t *bp, size_t n) {
return n;
}
-static size_t reads(void *ip, uint8_t *bp, size_t n) {
+static size_t _reads(void *ip, uint8_t *bp, size_t n) {
MemoryStream *msp = ip;
if (msp->eos - msp->offset < n)
@@ -63,7 +63,7 @@ static size_t reads(void *ip, uint8_t *bp, size_t n) {
return n;
}
-static msg_t put(void *ip, uint8_t b) {
+static msg_t _put(void *ip, uint8_t b) {
MemoryStream *msp = ip;
if (msp->size - msp->eos <= 0)
@@ -73,7 +73,7 @@ static msg_t put(void *ip, uint8_t b) {
return MSG_OK;
}
-static msg_t get(void *ip) {
+static msg_t _get(void *ip) {
uint8_t b;
MemoryStream *msp = ip;
@@ -84,7 +84,7 @@ static msg_t get(void *ip) {
return b;
}
-static const struct MemStreamVMT vmt = {writes, reads, put, get};
+static const struct MemStreamVMT vmt = {_writes, _reads, _put, _get};
/*===========================================================================*/
/* Driver exported functions. */