Skip to content

Instantly share code, notes, and snippets.

@spotlightishere
Last active December 31, 2018 12:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save spotlightishere/22f28e1863f61eac261c33a2b4cbca0f to your computer and use it in GitHub Desktop.
Save spotlightishere/22f28e1863f61eac261c33a2b4cbca0f to your computer and use it in GitHub Desktop.
pilot-link patch
diff -Naur pilot-link.orig/src/pilot-read-notepad.c pilot-link-0.12.5/src/pilot-read-notepad.c
--- pilot-link.orig/src/pilot-read-notepad.c 2009-06-04 08:26:19.000000000 -0500
+++ pilot-link-0.12.5/src/pilot-read-notepad.c 2017-05-07 15:12:02.000000000 -0500
@@ -166,8 +166,8 @@
width = n->body.width + 8;
png_ptr = png_create_write_struct
- ( PNG_LIBPNG_VER_STRING, png_voidp_NULL,
- png_error_ptr_NULL, png_error_ptr_NULL);
+ ( PNG_LIBPNG_VER_STRING, NULL,
+ NULL, NULL);
if(!png_ptr)
return;
diff -Naur pilot-link.orig/src/pilot-read-palmpix.c pilot-link-0.12.5/src/pilot-read-palmpix.c
--- pilot-link.orig/src/pilot-read-palmpix.c 2009-06-04 08:26:19.000000000 -0500
+++ pilot-link-0.12.5/src/pilot-read-palmpix.c 2017-05-07 15:11:44.000000000 -0500
@@ -223,8 +223,8 @@
png_infop info_ptr;
png_ptr = png_create_write_struct
- ( PNG_LIBPNG_VER_STRING, png_voidp_NULL,
- png_error_ptr_NULL, png_error_ptr_NULL);
+ ( PNG_LIBPNG_VER_STRING, NULL,
+ NULL, NULL);
if(!png_ptr)
return;
diff -Naur pilot-link.orig/src/pilot-read-screenshot.c pilot-link-0.12.5/src/pilot-read-screenshot.c
--- pilot-link.orig/src/pilot-read-screenshot.c 2009-06-04 08:26:19.000000000 -0500
+++ pilot-link-0.12.5/src/pilot-read-screenshot.c 2017-05-07 15:11:17.000000000 -0500
@@ -87,8 +87,8 @@
gray_buf = malloc( state->w );
png_ptr = png_create_write_struct
- (PNG_LIBPNG_VER_STRING, png_voidp_NULL,
- png_error_ptr_NULL, png_error_ptr_NULL);
+ (PNG_LIBPNG_VER_STRING, NULL,
+ NULL, NULL);
if (!png_ptr)
return;
diff -Naur pilot-link.orig/src/pilot-read-veo.c pilot-link-0.12.5/src/pilot-read-veo.c
--- pilot-link.orig/src/pilot-read-veo.c 2009-06-04 08:26:19.000000000 -0500
+++ pilot-link-0.12.5/src/pilot-read-veo.c 2017-05-07 15:11:00.000000000 -0500
@@ -856,8 +856,8 @@
png_infop info_ptr;
png_ptr = png_create_write_struct
- (PNG_LIBPNG_VER_STRING, png_voidp_NULL,
- png_error_ptr_NULL, png_error_ptr_NULL);
+ (PNG_LIBPNG_VER_STRING, NULL,
+ NULL, NULL);
if (!png_ptr)
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment