diff --git a/lib/isc/include/isc/file.h b/lib/isc/include/isc/file.h index ab092ff125..26b7bdbb8b 100644 --- a/lib/isc/include/isc/file.h +++ b/lib/isc/include/isc/file.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: file.h,v 1.16 2001/05/03 18:59:28 bwelling Exp $ */ +/* $Id: file.h,v 1.17 2001/05/05 02:47:19 bwelling Exp $ */ #ifndef ISC_FILE_H #define ISC_FILE_H 1 @@ -177,7 +177,7 @@ isc_file_iscurrentdir(const char *filename); * Return ISC_TRUE iff the given file name is the current directory ("."). */ -char * +const char * isc_file_basename(const char *filename); /* * Return the final component of the path in the file name. diff --git a/lib/isc/unix/file.c b/lib/isc/unix/file.c index ab0249d9c1..bf9fe934e3 100644 --- a/lib/isc/unix/file.c +++ b/lib/isc/unix/file.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: file.c,v 1.31 2001/05/03 18:59:30 bwelling Exp $ */ +/* $Id: file.c,v 1.32 2001/05/05 02:47:21 bwelling Exp $ */ #include @@ -235,7 +235,7 @@ isc_file_iscurrentdir(const char *filename) { return (ISC_TF(filename[0] == '.' && filename[1] == '\0')); } -char * +const char * isc_file_basename(const char *filename) { char *s;