isc_file_basename should return a (const char *)
This commit is contained in:
@@ -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.
|
||||
|
||||
+2
-2
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user