* sysdep.c (rename): Make arguments const. autoconf #defines
authorJim Blandy <jimb@redhat.com>
Sat, 19 Jun 1993 21:07:02 +0000 (21:07 +0000)
committerJim Blandy <jimb@redhat.com>
Sat, 19 Jun 1993 21:07:02 +0000 (21:07 +0000)
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.

src/sysdep.c

index 8e7858f..bed1f70 100644 (file)
@@ -2694,8 +2694,8 @@ getwd (pathname)
 #ifndef HAVE_RENAME
 
 rename (from, to)
-     char *from;
-     char *to;
+     const char *from;
+     const char *to;
 {
   if (access (from, 0) == 0)
     {