From 24e274b8d9c9617bc10b9dcde66864fb2884b58c Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Thu, 11 Feb 2016 08:54:49 -0800 Subject: [PATCH] Add comment --- src/core/channel/channel_args.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/channel/channel_args.c b/src/core/channel/channel_args.c index 619bdd7e99a..bae7a90a015 100644 --- a/src/core/channel/channel_args.c +++ b/src/core/channel/channel_args.c @@ -118,6 +118,8 @@ static int cmp_arg(const grpc_arg *a, const grpc_arg *b) { GPR_UNREACHABLE_CODE(return 0); } +/* stabilizing comparison function: since channel_args ordering matters for + * keys with the same name, we need to preserve that ordering */ static int cmp_key_stable(const void *ap, const void *bp) { const grpc_arg *const *a = ap; const grpc_arg *const *b = bp;