mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
add const to filename args
This commit is contained in:
@@ -210,7 +210,7 @@ dns_db_endload(dns_db_t *db, dns_dbload_t **dbloadp) {
|
||||
}
|
||||
|
||||
dns_result_t
|
||||
dns_db_load(dns_db_t *db, char *filename) {
|
||||
dns_db_load(dns_db_t *db, const char *filename) {
|
||||
dns_result_t result, eresult;
|
||||
int soacount, nscount;
|
||||
dns_rdatacallbacks_t callbacks;
|
||||
@@ -246,7 +246,7 @@ dns_db_load(dns_db_t *db, char *filename) {
|
||||
}
|
||||
|
||||
dns_result_t
|
||||
dns_db_dump(dns_db_t *db, dns_dbversion_t *version, char *filename) {
|
||||
dns_db_dump(dns_db_t *db, dns_dbversion_t *version, const char *filename) {
|
||||
/*
|
||||
* Dump 'db' into master file 'filename'.
|
||||
*/
|
||||
|
@@ -78,7 +78,7 @@ typedef struct dns_dbmethods {
|
||||
dns_dbload_t **dbloadp);
|
||||
dns_result_t (*endload)(dns_db_t *db, dns_dbload_t **dbloadp);
|
||||
dns_result_t (*dump)(dns_db_t *db, dns_dbversion_t *version,
|
||||
char *filename);
|
||||
const char *filename);
|
||||
void (*currentversion)(dns_db_t *db,
|
||||
dns_dbversion_t **versionp);
|
||||
dns_result_t (*newversion)(dns_db_t *db,
|
||||
@@ -395,7 +395,7 @@ dns_db_endload(dns_db_t *db, dns_dbload_t **dbloadp);
|
||||
*/
|
||||
|
||||
dns_result_t
|
||||
dns_db_load(dns_db_t *db, char *filename);
|
||||
dns_db_load(dns_db_t *db, const char *filename);
|
||||
/*
|
||||
* Load master file 'filename' into 'db'.
|
||||
*
|
||||
@@ -422,7 +422,7 @@ dns_db_load(dns_db_t *db, char *filename);
|
||||
*/
|
||||
|
||||
dns_result_t
|
||||
dns_db_dump(dns_db_t *db, dns_dbversion_t *version, char *filename);
|
||||
dns_db_dump(dns_db_t *db, dns_dbversion_t *version, const char *filename);
|
||||
/*
|
||||
* Dump version 'version' of 'db' to master file 'filename'.
|
||||
*
|
||||
|
@@ -38,7 +38,7 @@ ISC_LANG_BEGINDECLS
|
||||
*** Function
|
||||
***/
|
||||
|
||||
dns_result_t dns_master_loadfile(char *master_file,
|
||||
dns_result_t dns_master_loadfile(const char *master_file,
|
||||
dns_name_t *top,
|
||||
dns_name_t *origin,
|
||||
dns_rdataclass_t zclass,
|
||||
|
@@ -64,7 +64,7 @@ extern const dns_master_style_t dns_master_style_default;
|
||||
dns_result_t
|
||||
dns_master_dump(isc_mem_t *mctx, dns_db_t *db,
|
||||
dns_dbversion_t *version,
|
||||
const dns_master_style_t *style, char *filename);
|
||||
const dns_master_style_t *style, const char *filename);
|
||||
/*
|
||||
* Dump the database 'db' to the file 'filename' in RFC1035 master
|
||||
* file format, in the style defined by 'style'
|
||||
|
@@ -776,7 +776,7 @@ dns_master_dumptostream(isc_mem_t *mctx, dns_db_t *db,
|
||||
|
||||
dns_result_t
|
||||
dns_master_dump(isc_mem_t *mctx, dns_db_t *db, dns_dbversion_t *version,
|
||||
const dns_master_style_t *style, char *filename)
|
||||
const dns_master_style_t *style, const char *filename)
|
||||
{
|
||||
FILE *f;
|
||||
dns_result_t result;
|
||||
|
@@ -3697,7 +3697,7 @@ endload(dns_db_t *db, dns_dbload_t **dbloadp) {
|
||||
}
|
||||
|
||||
static dns_result_t
|
||||
dump(dns_db_t *db, dns_dbversion_t *version, char *filename) {
|
||||
dump(dns_db_t *db, dns_dbversion_t *version, const char *filename) {
|
||||
dns_rbtdb_t *rbtdb;
|
||||
|
||||
rbtdb = (dns_rbtdb_t *)db;
|
||||
|
@@ -219,7 +219,7 @@ isc_lex_setspecials(isc_lex_t *lex, isc_lexspecials_t specials);
|
||||
*/
|
||||
|
||||
isc_result_t
|
||||
isc_lex_openfile(isc_lex_t *lex, char *filename);
|
||||
isc_lex_openfile(isc_lex_t *lex, const char *filename);
|
||||
/*
|
||||
* Open 'filename' and make it the current input source for 'lex'.
|
||||
*
|
||||
|
@@ -168,7 +168,7 @@ isc_lex_setspecials(isc_lex_t *lex, isc_lexspecials_t specials) {
|
||||
|
||||
static inline isc_result_t
|
||||
new_source(isc_lex_t *lex, isc_boolean_t is_file, isc_boolean_t need_close,
|
||||
void *input, char *name)
|
||||
void *input, const char *name)
|
||||
{
|
||||
inputsource *source;
|
||||
|
||||
@@ -196,7 +196,7 @@ new_source(isc_lex_t *lex, isc_boolean_t is_file, isc_boolean_t need_close,
|
||||
}
|
||||
|
||||
isc_result_t
|
||||
isc_lex_openfile(isc_lex_t *lex, char *filename) {
|
||||
isc_lex_openfile(isc_lex_t *lex, const char *filename) {
|
||||
FILE *stream;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user