diff options
author | 2016-02-11 08:54:49 -0800 | |
---|---|---|
committer | 2016-02-11 08:54:49 -0800 | |
commit | 24e274b8d9c9617bc10b9dcde66864fb2884b58c (patch) | |
tree | 19b2d6455118e6ca59d7d97bf6daf607a6760b67 /src/core/channel/channel_args.c | |
parent | f73429901acf8f7c19c9c33539fbdbc7b703d7a4 (diff) |
Add comment
Diffstat (limited to 'src/core/channel/channel_args.c')
-rw-r--r-- | src/core/channel/channel_args.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/channel/channel_args.c b/src/core/channel/channel_args.c index 619bdd7e99..bae7a90a01 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; |