mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 03:59:59 -04:00
isc_file_basename should return a (const char *)
This commit is contained in:
parent
e40cd7f5c9
commit
d144ea1d1c
2 changed files with 4 additions and 4 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue