diff options
Diffstat (limited to 'src/Write.c')
-rw-r--r-- | src/Write.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Write.c b/src/Write.c index 531e49d..aee3ded 100644 --- a/src/Write.c +++ b/src/Write.c @@ -19,7 +19,7 @@ #include "ioJpegGH.h" /* the rcs ID and its dummy function to use it */ -static const char *rcsid = "$Id$"; +static const char *rcsid = "$Header$"; CCTK_FILEVERSION(CactusIO_IOJpeg_Write_c) @@ -45,7 +45,7 @@ static void WriteData (const cGH *GH, int vindex, const char *alias, int dim, WriteData @var GH - @vdesc Pointer to CCTK GH + @vdesc pointer to CCTK GH @vtype const cGH * @vio in @endvar @@ -71,7 +71,7 @@ static void WriteData (const cGH *GH, int vindex, const char *alias, int dim, @@*/ int IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias) { - ioJpegGH *myGH; + const ioJpegGH *myGH; int i, total_hsize; int dir, dir_i, dir_j, maxdir, myproc, groupindex; cGroup gdata; @@ -107,7 +107,7 @@ int IOJpeg_Write (const cGH *GH, CCTK_INT vindex, const char *alias) /* get the handle for IOJpeg extensions */ myproc = CCTK_MyProc (GH); - myGH = (ioJpegGH *) CCTK_GHExtension (GH, "IOJpeg"); + myGH = (const ioJpegGH *) CCTK_GHExtension (GH, "IOJpeg"); /* set the minimum/maximum for the colormap */ if (CCTK_Equals (colormap, "custom")) @@ -235,7 +235,7 @@ static void WriteData (const cGH *GH, int vindex, const char *alias, int dim, { FILE *file; unsigned char *dataout; - ioJpegGH *myGH; + const ioJpegGH *myGH; ioAdvertisedFileDesc advertised_file; char *filename, *fullname; char slicename[30]; @@ -243,7 +243,7 @@ static void WriteData (const cGH *GH, int vindex, const char *alias, int dim, DECLARE_CCTK_PARAMETERS - myGH = (ioJpegGH *) CCTK_GHExtension (GH, "IOJpeg"); + myGH = (const ioJpegGH *) CCTK_GHExtension (GH, "IOJpeg"); /* allocate the RGB image buffer */ dataout = (unsigned char *) malloc (3 * hsize[0] * hsize[1]); |