From b4651ee3c2055edda8de08ff93f9bad53e92bad2 Mon Sep 17 00:00:00 2001 From: "Mirar (Pontus Hagland)" <pike@sort.mirar.org> Date: Sat, 2 May 1998 03:24:25 +0200 Subject: [PATCH] global use of wrong struct fixed Rev: src/modules/Image/encodings/gif.c:1.45 Rev: src/modules/Image/encodings/gif_lzw.h:1.6 --- src/modules/Image/encodings/gif.c | 7 ++++--- src/modules/Image/encodings/gif_lzw.h | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/modules/Image/encodings/gif.c b/src/modules/Image/encodings/gif.c index bb7be70057..65a2914bd9 100644 --- a/src/modules/Image/encodings/gif.c +++ b/src/modules/Image/encodings/gif.c @@ -1,9 +1,9 @@ -/* $Id: gif.c,v 1.44 1998/04/29 21:57:08 mirar Exp $ */ +/* $Id: gif.c,v 1.45 1998/05/02 01:24:23 mirar Exp $ */ /* **! module Image **! note -**! $Id: gif.c,v 1.44 1998/04/29 21:57:08 mirar Exp $ +**! $Id: gif.c,v 1.45 1998/05/02 01:24:23 mirar Exp $ **! submodule GIF **! **! This submodule keep the GIF encode/decode capabilities @@ -31,7 +31,7 @@ #include <ctype.h> #include "stralloc.h" -RCSID("$Id: gif.c,v 1.44 1998/04/29 21:57:08 mirar Exp $"); +RCSID("$Id: gif.c,v 1.45 1998/05/02 01:24:23 mirar Exp $"); #include "pike_macros.h" #include "object.h" #include "constants.h" @@ -1604,6 +1604,7 @@ static void _gif_decode_lzw(unsigned char *s, int m=endcode; unsigned int q; unsigned int mask=(unsigned short)((1<<bits)-1); + struct lzwc *c; #ifdef GIF_DEBUG int debug=0; diff --git a/src/modules/Image/encodings/gif_lzw.h b/src/modules/Image/encodings/gif_lzw.h index 7555d1ada9..6cfc993613 100644 --- a/src/modules/Image/encodings/gif_lzw.h +++ b/src/modules/Image/encodings/gif_lzw.h @@ -1,7 +1,7 @@ /* **! module Image **! note -**! $Id: gif_lzw.h,v 1.5 1998/04/29 01:27:23 mirar Exp $ +**! $Id: gif_lzw.h,v 1.6 1998/05/02 01:24:25 mirar Exp $ */ typedef unsigned short lzwcode_t; /* no more than 12 bits used */ @@ -12,7 +12,7 @@ struct lzwc unsigned short prev; unsigned short len; unsigned short c; -} *c; +}; struct gif_lzw { -- GitLab