mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
initial work on a wifi/http configuration module
This commit is contained in:
@@ -64,11 +64,6 @@ void buf_flush(struct buffer *buf) {
|
||||
mutex_unlock(buf->mutex);
|
||||
}
|
||||
|
||||
void _buf_flush(struct buffer *buf) {
|
||||
buf->readp = buf->buf;
|
||||
buf->writep = buf->buf;
|
||||
}
|
||||
|
||||
// adjust buffer to multiple of mod bytes so reading in multiple always wraps on frame boundary
|
||||
void buf_adjust(struct buffer *buf, size_t mod) {
|
||||
size_t size;
|
||||
@@ -83,7 +78,6 @@ void buf_adjust(struct buffer *buf, size_t mod) {
|
||||
|
||||
// called with mutex locked to resize, does not retain contents, reverts to original size if fails
|
||||
void _buf_resize(struct buffer *buf, size_t size) {
|
||||
if (size == buf->size) return;
|
||||
free(buf->buf);
|
||||
buf->buf = malloc(size);
|
||||
if (!buf->buf) {
|
||||
|
||||
Reference in New Issue
Block a user