summaryrefslogtreecommitdiff
path: root/lib/ypc.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ypc.h')
-rw-r--r--lib/ypc.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ypc.h b/lib/ypc.h
index ee71df5..2885ab4 100644
--- a/lib/ypc.h
+++ b/lib/ypc.h
@@ -145,8 +145,8 @@ static inline ypc_get ypc_iter_next(ypc_iter *i) { ypc_get g = {i->buf};
* *v->buf == 9, which is much cheaper than a function call. A similar
* optimization is possible when using ypc_get_type() in a switch statement.
*/
-static inline ypc_type ypc_get_type(ypc_get *v) {
- switch(*v->buf) {
+static inline ypc_type ypc_get_type(ypc_get v) {
+ switch(*v.buf) {
case 0:
return YPC_NULL;
case 1: