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

Comparing ray/src/common/error.c (file contents):
Revision 2.11 by greg, Wed Feb 10 18:28:00 2021 UTC vs.
Revision 2.12 by greg, Thu Feb 9 18:34:31 2023 UTC

# Line 14 | Line 14 | static const char      RCSid[] = "$Id$";
14  
15   #include  "rterror.h"
16  
17 < extern char     *strerror();
17 > extern char     *strerror(int);
18                                  /* global list of error actions */
19   struct erract   erract[NERRS] = ERRACT_INIT;
20  
# Line 22 | Line 22 | char  errmsg[2048];            /* global error message buffer */
22  
23  
24   void
25 < error(etype, emsg)              /* report error, quit if necessary */
26 < int  etype;
27 < char  *emsg;
25 > error(int etype, const char *emsg)      /* report error, quit if necessary */
26   {
27 <        register struct erract  *ep;
27 >        struct erract   *ep;
28  
29          if ((etype < 0) | (etype >= NERRS))
30                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines