From 91cb3bb665cebc5548c571fb4a0b2fbffa164d88 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Sat, 31 Jul 1999 17:20:49 +0000 Subject: [PATCH] Fixed 2 C syntax bugs, Daniel --- gdk-pixbuf/ChangeLog | 5 +++++ gdk-pixbuf/gdk-pixbuf-io.c | 2 +- gdk-pixbuf/io-png.c | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index be55f15a74..34dbf98351 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 31 19:19:47 CEST 1999 + + * src/gdk-pixbuf-io.c: + * src/io-png.c: Fixed two obvious C syntax bugs + 1999-07-29 Mark Crichton * src/io-png.c (image_save): Added PNG saving function diff --git a/gdk-pixbuf/gdk-pixbuf-io.c b/gdk-pixbuf/gdk-pixbuf-io.c index 94e6e6b6a6..7a06da6a30 100644 --- a/gdk-pixbuf/gdk-pixbuf-io.c +++ b/gdk-pixbuf/gdk-pixbuf-io.c @@ -121,7 +121,7 @@ static struct { gboolean (*format_check)(unsigned char *buffer, int size); GModule *module; GdkPixBuf *(*load)(FILE *f); - int (*save)(GdkPixBuf, *p, FILE *f, ...); + int (*save)(GdkPixBuf *p, FILE *f, ...); } file_formats [] = { { "png", pixbuf_check_png, NULL, NULL, NULL }, { "jpeg", pixbuf_check_jpeg, NULL, NULL, NULL }, diff --git a/gdk-pixbuf/io-png.c b/gdk-pixbuf/io-png.c index ed5bfca50b..514b13c8e5 100644 --- a/gdk-pixbuf/io-png.c +++ b/gdk-pixbuf/io-png.c @@ -174,7 +174,7 @@ int image_save(GdkPixBuf *pixbuf, FILE *file) png_color_8 sig_bit; gint type; - g_return_val_if_fail(f != NULL, NULL); + g_return_val_if_fail(file != NULL, NULL); g_return_val_if_fail(pixbuf != NULL, NULL); h = pixbuf->art_pixbuf->height;