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

Comparing ray/src/common/expandarg.c (file contents):
Revision 2.5 by greg, Tue Feb 25 02:47:21 2003 UTC vs.
Revision 2.6 by greg, Tue May 13 17:58:32 2003 UTC

# Line 46 | Line 46 | int    n;
46          if (newav == NULL)
47                  return(-1);
48                                          /* copy preceeding arguments */
49 <        bcopy((char *)*avp, (char *)newav, n*sizeof(char *));
49 >        bcopy((void *)*avp, (void *)newav, n*sizeof(char *));
50                                          /* copy expanded argument */
51 <        bcopy((char *)ave, (char *)(newav+n), ace*sizeof(char *));
51 >        bcopy((void *)ave, (void *)(newav+n), ace*sizeof(char *));
52                                          /* copy trailing arguments + NULL */
53 <        bcopy((char *)(*avp+n+1), (char *)(newav+n+ace), (*acp-n)*sizeof(char *));
53 >        bcopy((void *)(*avp+n+1), (void *)(newav+n+ace), (*acp-n)*sizeof(char *));
54                                          /* free old list */
55          bfree((char *)*avp, (*acp+1)*sizeof(char *));
56                                          /* assign new list */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines