| 1 |
– |
/* Copyright (c) 1990 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 |
|
* Load lamp data. |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
+ |
#include "copyright.h" |
| 9 |
+ |
|
| 10 |
|
#include <stdio.h> |
| 11 |
+ |
#include <stdlib.h> |
| 12 |
|
#include <ctype.h> |
| 13 |
+ |
#include "color.h" |
| 14 |
|
|
| 15 |
< |
extern char *eindex(), *expsave(), *malloc(); |
| 15 |
> |
extern char *eindex(), *expsave(); |
| 16 |
|
extern FILE *frlibopen(); |
| 17 |
|
|
| 18 |
|
typedef struct lamp { |
| 136 |
|
for (lp2 = lp1->next; lp2 != NULL; lp2 = lp2->next) |
| 137 |
|
if (lp2->color == lp1->color) |
| 138 |
|
lp2->color = NULL; |
| 139 |
< |
free((char *)lp1->color); |
| 139 |
> |
free((void *)lp1->color); |
| 140 |
|
} |
| 141 |
|
lp2 = lp1->next; |
| 142 |
< |
free((char *)lp1); |
| 142 |
> |
free((void *)lp1); |
| 143 |
|
} |
| 144 |
|
lamps = NULL; |
| 145 |
|
} |