ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/px/ra_t16.c
(Generate patch)

Comparing ray/src/px/ra_t16.c (file contents):
Revision 2.5 by greg, Sun Feb 27 10:17:20 1994 UTC vs.
Revision 2.6 by greg, Sat Feb 22 02:07:28 2003 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1991 Regents of the University of California */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ LBL";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   *  ra_t16.c - program to convert between RADIANCE and
6   *              Targa 16, 24 and 32-bit images.
# Line 17 | Line 14 | static char SCCSid[] = "$SunId$ LBL";
14   #include  <fcntl.h>
15   #endif
16  
17 + #include  <time.h>
18 +
19   #include  <math.h>
20  
21   #include  "color.h"
# Line 174 | Line 173 | char  *err;
173   }
174  
175  
176 + void
177   eputs(s)
178   char *s;
179   {
# Line 181 | Line 181 | char *s;
181   }
182  
183  
184 + void
185   quit(code)
186   int code;
187   {
# Line 291 | Line 292 | struct hdStruct  *hp;
292                  if (fwritecolrs(scanline, hp->x, stdout) < 0)
293                          quiterr("error writing RADIANCE file");
294          }
295 <        free((char *)scanline);
296 <        free((char *)tarData);
295 >        free((void *)scanline);
296 >        free((void *)tarData);
297   }
298  
299  
# Line 340 | Line 341 | struct hdStruct  *hp;
341                                                  /* write out targa data */
342          writetarga(hp, tarData, stdout);
343  
344 <        free((char *)inl);
345 <        free((char *)tarData);
344 >        free((void *)inl);
345 >        free((void *)tarData);
346   }
347  
348  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines