isc_file_basename should return a (const char *)

This commit is contained in:
Brian Wellington 2001-05-05 02:47:21 +00:00
parent e40cd7f5c9
commit d144ea1d1c
2 changed files with 4 additions and 4 deletions

View file

@ -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.

View file

@ -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 <config.h>
@ -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;