summaryrefslogtreecommitdiffstats
path: root/src/rnpkeys
diff options
context:
space:
mode:
Diffstat (limited to 'src/rnpkeys')
-rw-r--r--src/rnpkeys/main.cpp6
-rw-r--r--src/rnpkeys/rnpkeys.cpp6
2 files changed, 7 insertions, 5 deletions
diff --git a/src/rnpkeys/main.cpp b/src/rnpkeys/main.cpp
index 8bcb7e1..3dd088c 100644
--- a/src/rnpkeys/main.cpp
+++ b/src/rnpkeys/main.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017, [Ribose Inc](https://www.ribose.com).
+ * Copyright (c) 2017-2023, [Ribose Inc](https://www.ribose.com).
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -41,7 +41,7 @@
extern struct option options[];
extern const char * usage;
-optdefs_t
+static optdefs_t
get_short_cmd(int ch)
{
switch (ch) {
@@ -52,7 +52,9 @@ get_short_cmd(int ch)
case 'l':
return CMD_LIST_KEYS;
case 'h':
+#if (!defined(_MSVC_LANG) || _MSVC_LANG >= 201703L)
[[fallthrough]];
+#endif
default:
return CMD_HELP;
}
diff --git a/src/rnpkeys/rnpkeys.cpp b/src/rnpkeys/rnpkeys.cpp
index 1a6997c..6a7885d 100644
--- a/src/rnpkeys/rnpkeys.cpp
+++ b/src/rnpkeys/rnpkeys.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2021, [Ribose Inc](https://www.ribose.com).
+ * Copyright (c) 2017-2023, [Ribose Inc](https://www.ribose.com).
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* All rights reserved.
*
@@ -260,8 +260,8 @@ import_keys(cli_rnp_t *rnp, rnp_input_t input, const std::string &inname)
} while (1);
// print statistics
- ERR_MSG("Import finished: %lu key%s processed, %lu new public keys, %lu new secret keys, "
- "%lu updated, %lu unchanged.",
+ ERR_MSG("Import finished: %zu key%s processed, %zu new public keys, %zu new secret keys, "
+ "%zu updated, %zu unchanged.",
processed_keys,
(processed_keys != 1) ? "s" : "",
new_pub_keys.size(),