Declaring the function argument as const fixes a warning down the line that the const parameter is stripped. We don't modify this argument. Signed-off-by: Leo Izen <leo.izen@gmail.com> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>