From dbebd33be74a3a53ccaafc576eb12c7ad49cba42 Mon Sep 17 00:00:00 2001
From: James Zern <jzern@google.com>
Date: Sat, 7 Dec 2013 13:26:05 -0800
Subject: [PATCH] cosmetics: dwebp: fix local function name format

error_function -> PNGErrorFunction

Change-Id: Ic6c0e676cc47bca2c1a1e0d8e95639e780982b1b
---
 examples/dwebp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/examples/dwebp.c b/examples/dwebp.c
index 36a95b6f..070cf200 100644
--- a/examples/dwebp.c
+++ b/examples/dwebp.c
@@ -186,7 +186,7 @@ static int WritePNG(const char* out_file_name, int use_stdout,
 }
 
 #elif defined(WEBP_HAVE_PNG)    // !HAVE_WINCODEC_H
-static void PNGAPI error_function(png_structp png, png_const_charp dummy) {
+static void PNGAPI PNGErrorFunction(png_structp png, png_const_charp dummy) {
   (void)dummy;  // remove variable-unused warning
   longjmp(png_jmpbuf(png), 1);
 }
@@ -202,7 +202,7 @@ static int WritePNG(FILE* out_file, const WebPDecBuffer* const buffer) {
   png_uint_32 y;
 
   png = png_create_write_struct(PNG_LIBPNG_VER_STRING,
-                                NULL, error_function, NULL);
+                                NULL, PNGErrorFunction, NULL);
   if (png == NULL) {
     return 0;
   }