--- ray/src/cv/thf2rad.c 1991/12/19 15:05:54 2.2 +++ ray/src/cv/thf2rad.c 2003/07/27 22:12:02 2.7 @@ -1,9 +1,6 @@ -/* Copyright (c) 1990 Regents of the University of California */ - #ifndef lint -static char SCCSid[] = "$SunId$ LBL"; +static const char RCSid[] = "$Id: thf2rad.c,v 2.7 2003/07/27 22:12:02 schorsch Exp $"; #endif - /* Copyright (c) 1988 Regents of the University of California */ /* @@ -13,14 +10,12 @@ static char SCCSid[] = "$SunId$ LBL"; */ #include +#include +#include #define MAXSTR 128 /* maximum string or id length */ #define MAXPTS 2048 /* maximum points per object */ -#ifndef atof -extern double atof(); -#endif - typedef struct { double x, y, z; } POINT; @@ -83,7 +78,7 @@ char *name, *file; if (name == NULL) name = file; } - for (cp = nambuf; *cp = *name++; cp++) + for (cp = nambuf; (*cp = *name++); cp++) ; /* get objects from file */ on = 0;