Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
637
Issues
637
List
Boards
Labels
Service Desk
Milestones
Merge Requests
106
Merge Requests
106
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
eae21e53
Commit
eae21e53
authored
Aug 08, 2001
by
Andreas Gustafsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
declaring progname as a char pointer in util.c
and a char array in rndc-confgen.c doesn't work
parent
de9833be
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
bin/rndc/rndc-confgen.c
bin/rndc/rndc-confgen.c
+7
-4
No files found.
bin/rndc/rndc-confgen.c
View file @
eae21e53
...
...
@@ -15,7 +15,7 @@
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: rndc-confgen.c,v 1.
6 2001/08/03 23:44:49
gson Exp $ */
/* $Id: rndc-confgen.c,v 1.
7 2001/08/08 05:13:47
gson Exp $ */
#include <config.h>
...
...
@@ -49,7 +49,9 @@
#define DEFAULT_SERVER "127.0.0.1"
#define DEFAULT_PORT 953
char
progname
[
256
];
static
char
program
[
256
];
char
*
progname
;
isc_boolean_t
verbose
=
ISC_FALSE
;
const
char
*
keyfile
,
*
keydef
;
...
...
@@ -146,9 +148,10 @@ main(int argc, char **argv) {
keydef
=
keyfile
=
RNDC_KEYFILE
;
result
=
isc_file_progname
(
*
argv
,
prog
name
,
sizeof
(
progname
));
result
=
isc_file_progname
(
*
argv
,
prog
ram
,
sizeof
(
program
));
if
(
result
!=
ISC_R_SUCCESS
)
memcpy
(
progname
,
"rndc-confgen"
,
13
);
memcpy
(
program
,
"rndc-confgen"
,
13
);
progname
=
program
;
keyname
=
DEFAULT_KEYNAME
;
keysize
=
DEFAULT_KEYLENGTH
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment