From f405067ad1bca6d3f102d0f46d41778fa2218de1 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Wed, 2 Apr 2003 00:22:50 +0200 Subject: [PATCH] Fixed some warnings. Rev: src/modules/Image/colortable_lookup.h:1.22 --- src/modules/Image/colortable_lookup.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/Image/colortable_lookup.h b/src/modules/Image/colortable_lookup.h index f507815089..58337eef45 100644 --- a/src/modules/Image/colortable_lookup.h +++ b/src/modules/Image/colortable_lookup.h @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: colortable_lookup.h,v 1.21 2003/03/21 18:58:25 marcus Exp $ +|| $Id: colortable_lookup.h,v 1.22 2003/04/01 22:22:50 mast Exp $ */ /* included w/ defines in colortable.c */ @@ -533,7 +533,7 @@ void (*NCTLU_SELECT_FUNCTION(struct neo_colortable *nct)) DEFINETOSTR(NCTLU_DESTINATION) " => " DEFINETOSTR(NCTLU_CUBE_NAME) "\n"); #endif /* COLORTABLE_DEBUG */ - return NCTLU_CUBE_NAME; + return &NCTLU_CUBE_NAME; case NCT_FLAT: switch (nct->lookup_mode) { @@ -544,7 +544,7 @@ void (*NCTLU_SELECT_FUNCTION(struct neo_colortable *nct)) DEFINETOSTR(NCTLU_DESTINATION) " => " DEFINETOSTR(NCTLU_FLAT_FULL_NAME) "\n"); #endif /* COLORTABLE_DEBUG */ - return NCTLU_FLAT_FULL_NAME; + return &NCTLU_FLAT_FULL_NAME; case NCT_RIGID: #ifdef COLORTABLE_DEBUG fprintf(stderr, @@ -552,7 +552,7 @@ void (*NCTLU_SELECT_FUNCTION(struct neo_colortable *nct)) DEFINETOSTR(NCTLU_DESTINATION) " => " DEFINETOSTR(NCTLU_FLAT_RIGID_NAME) "\n"); #endif /* COLORTABLE_DEBUG */ - return NCTLU_FLAT_RIGID_NAME; + return &NCTLU_FLAT_RIGID_NAME; case NCT_CUBICLES: #ifdef COLORTABLE_DEBUG fprintf(stderr, @@ -560,7 +560,7 @@ void (*NCTLU_SELECT_FUNCTION(struct neo_colortable *nct)) DEFINETOSTR(NCTLU_DESTINATION) " => " DEFINETOSTR(NCTLU_FLAT_CUBICLES_NAME) "\n"); #endif /* COLORTABLE_DEBUG */ - return NCTLU_FLAT_CUBICLES_NAME; + return &NCTLU_FLAT_CUBICLES_NAME; } default: Pike_fatal("lookup select (%s:%d) couldn't find the lookup mode\n", -- GitLab