projects
/
pgbouncer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bebc4a
)
correct check in incomplete_pkt()
author
Marko Kreen
<markokr@gmail.com>
Thu, 16 Aug 2007 07:52:25 +0000
(07:52 +0000)
committer
Marko Kreen
<markokr@gmail.com>
Thu, 16 Aug 2007 07:52:25 +0000
(07:52 +0000)
src/proto.h
patch
|
blob
|
blame
|
history
diff --git
a/src/proto.h
b/src/proto.h
index 9f32d85f9f248507dd072e344f4d1a3242352a35..c4eb5d2e70dc14eba941ad26041c3a1699085c1a 100644
(file)
--- a/
src/proto.h
+++ b/
src/proto.h
@@
-50,7
+50,7
@@
int scan_text_result(MBuf *pkt, const char *tupdesc, ...);
/* is packet completely in our buffer */
static inline bool incomplete_pkt(const PktHdr *pkt)
{
- return mbuf_
avail
(&pkt->data) != pkt->len;
+ return mbuf_
size
(&pkt->data) != pkt->len;
}
/* one char desc */