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

Comparing ray/src/px/biq.c (file contents):
Revision 2.1 by greg, Tue Nov 12 16:04:14 1991 UTC vs.
Revision 2.4 by schorsch, Mon Jun 30 14:59:12 2003 UTC

# Line 1 | Line 1
1 /* Copyright 1988 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   *  biq.c - simple greyscale quantization.
6   *
7   *      9/19/88
8   */
9  
10 + #include <string.h>
11 +
12   #include "standard.h"
13   #include "ciq.h"
14  
# Line 32 | Line 31 | colormap cm;           /* quantization colormap */
31  
32      draw_grey(ocm);
33  
34 <    bcopy((char *)color,(char *)cm,sizeof color);
34 >    memcpy((void *)cm,(void *)color,sizeof color);
35   }
36  
37   /*----------------------------------------------------------------------*/
# Line 61 | Line 60 | colormap ocm;
60          }
61          picwriteline(y, linout);
62      }
63 <    free((char *)linin);
64 <    free((char *)linout);
63 >    free((void *)linin);
64 >    free((void *)linout);
65   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines