From 0e5bb2d99a1bbf90a6a07803e0a7527b3e824b49 Mon Sep 17 00:00:00 2001 From: Shunsuke Michii Date: Wed, 29 Jun 2016 21:24:39 +0900 Subject: [PATCH] Add const keyword to arguments. --- webp/encode.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webp/encode.go b/webp/encode.go index a9bc8ba..26689c3 100644 --- a/webp/encode.go +++ b/webp/encode.go @@ -15,7 +15,7 @@ static void free_WebPPicture(WebPPicture* webpPicture) { free(webpPicture); } -static int webpEncodeGray(WebPConfig *config, WebPPicture *picture) { +static int webpEncodeGray(const WebPConfig *config, WebPPicture *picture) { int ok = 0; const int c_width = (picture->width + 1) >> 1; const int c_height = (picture->height + 1) >> 1;