comparison src/sysdep.c @ 3842:e8bcf96f1418

* sysdep.c (rename): Make arguments const. autoconf #defines const away on systems which don't have it; any system with prototypes will declare the arguments const (the ones to which I have access do); and systems without prototypes won't notice.
author Jim Blandy <jimb@redhat.com>
date Sat, 19 Jun 1993 21:07:02 +0000
parents 647bef18618f
children 6cdfdbe5058b
comparison
equal deleted inserted replaced
3841:11500459af1d 3842:e8bcf96f1418
2692 */ 2692 */
2693 2693
2694 #ifndef HAVE_RENAME 2694 #ifndef HAVE_RENAME
2695 2695
2696 rename (from, to) 2696 rename (from, to)
2697 char *from; 2697 const char *from;
2698 char *to; 2698 const char *to;
2699 { 2699 {
2700 if (access (from, 0) == 0) 2700 if (access (from, 0) == 0)
2701 { 2701 {
2702 unlink (to); 2702 unlink (to);
2703 if (link (from, to) == 0) 2703 if (link (from, to) == 0)