2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

int alg in main() made unsigned for argument compatibility with

dns_key_parsefilename().
This commit is contained in:
David Lawrence
2000-06-06 15:32:26 +00:00
parent 7e6d96bcac
commit 6dedf9982c
2 changed files with 6 additions and 4 deletions

View File

@@ -215,7 +215,7 @@ main(int argc, char *argv[]) {
for (i = 0; i < argc; i++) {
isc_uint16_t id;
int alg;
unsigned int alg;
dns_fixedname_t fname;
dns_name_t *name;
char namestr[1025];
@@ -224,7 +224,8 @@ main(int argc, char *argv[]) {
isc_buffer_add(&b, strlen(argv[i]));
dns_fixedname_init(&fname);
name = dns_fixedname_name(&fname);
result = dst_key_parsefilename(&b, mctx, name, &id, &alg, NULL);
result = dst_key_parsefilename(&b, mctx, name, &id, &alg,
NULL);
if (result != ISC_R_SUCCESS)
fatal("%s is not a valid key filename", argv[i]);
strncpy(namestr, nametostr(name), sizeof(namestr) - 1);

View File

@@ -275,7 +275,7 @@ main(int argc, char *argv[]) {
for (i = 0; i < argc; i++) {
isc_uint16_t id;
int alg;
unsigned int alg;
dns_fixedname_t fname;
dns_name_t *name;
@@ -283,7 +283,8 @@ main(int argc, char *argv[]) {
isc_buffer_add(&b, strlen(argv[i]));
dns_fixedname_init(&fname);
name = dns_fixedname_name(&fname);
result = dst_key_parsefilename(&b, mctx, name, &id, &alg, NULL);
result = dst_key_parsefilename(&b, mctx, name, &id, &alg,
NULL);
if (result != ISC_R_SUCCESS)
usage();