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

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.24 by greg, Mon Feb 6 20:34:17 2023 UTC vs.
Revision 2.26 by greg, Mon Feb 6 22:40:21 2023 UTC

# Line 101 | Line 101 | main(int  argc, char  *argv[])
101          progname = argv[0] = fixargv0(argv[0]);
102                                          /* feature check only? */
103          strcat(RFeatureList, RPICT_FEATURES);
104 <        if (argc == 2 && !strcmp(argv[1], "-features"))
104 >        if (argc > 1 && !strcmp(argv[1], "-features"))
105                  return feature_status(argc-2, argv+2);
106                                          /* option city */
107          for (i = 1; i < argc; i++) {
# Line 395 | Line 395 | badopt:
395  
396   void
397   wputs(                          /* warning output function */
398 <        char    *s
398 >        const char      *s
399   )
400   {
401          int  lasterrno = errno;
# Line 406 | Line 406 | wputs(                         /* warning output function */
406  
407   void
408   eputs(                          /* put string to stderr */
409 <        char  *s
409 >        const char  *s
410   )
411   {
412          static int  midline = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines