diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-10-09 00:41:06 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-10-09 02:45:12 -0400 |
commit | f22b5d69dab482f7a3cbd429f43bfb34405b6f65 (patch) | |
tree | a8675452c5daf7a7517f22310b278a2ba4425b60 /src | |
parent | 9a69f31b208c5f02a34700f02b5d5c1c7924bc2f (diff) | |
download | lighttpd-git-f22b5d69dab482f7a3cbd429f43bfb34405b6f65.tar.gz |
[core] inline chunkqueue_is_empty()
Diffstat (limited to 'src')
-rw-r--r-- | src/chunk.c | 4 | ||||
-rw-r--r-- | src/chunk.h | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/chunk.c b/src/chunk.c index 8f8c59d8..1f212452 100644 --- a/src/chunk.c +++ b/src/chunk.c @@ -694,10 +694,6 @@ off_t chunkqueue_length(chunkqueue *cq) { return len; } -int chunkqueue_is_empty(chunkqueue *cq) { - return NULL == cq->first; -} - void chunkqueue_mark_written(chunkqueue *cq, off_t len) { off_t written = len; chunk *c; diff --git a/src/chunk.h b/src/chunk.h index 4453a8b4..ed40056a 100644 --- a/src/chunk.h +++ b/src/chunk.h @@ -98,6 +98,9 @@ off_t chunkqueue_length(chunkqueue *cq); void chunkqueue_free(chunkqueue *cq); void chunkqueue_reset(chunkqueue *cq); -int chunkqueue_is_empty(chunkqueue *cq); +static inline int chunkqueue_is_empty(const chunkqueue *cq); +static inline int chunkqueue_is_empty(const chunkqueue *cq) { + return NULL == cq->first; +} #endif |