зеркало из https://github.com/Azure/sonic-openssh.git
upstream: fix format string (use %llu for uint64, not %lld). spotted by
Darren and his tinderbox tests OpenBSD-Commit-ID: 3b4587c3d9d46a7be9bdf028704201943fba96c2
This commit is contained in:
Родитель
9cd40b829a
Коммит
de34a44027
8
krl.c
8
krl.c
|
@ -14,7 +14,7 @@
|
|||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $OpenBSD: krl.c,v 1.48 2020/04/03 02:26:56 djm Exp $ */
|
||||
/* $OpenBSD: krl.c,v 1.49 2020/04/03 04:43:24 djm Exp $ */
|
||||
|
||||
#include "includes.h"
|
||||
|
||||
|
@ -1370,7 +1370,7 @@ krl_dump(struct ssh_krl *krl, FILE *f)
|
|||
|
||||
/* Try to print in a KRL spec-compatible format */
|
||||
format_timestamp(krl->generated_date, timestamp, sizeof(timestamp));
|
||||
fprintf(f, "# KRL version %lld\n", krl->krl_version);
|
||||
fprintf(f, "# KRL version %llu\n", krl->krl_version);
|
||||
fprintf(f, "# Generated at %s\n", timestamp);
|
||||
if (krl->comment != NULL && *krl->comment != '\0') {
|
||||
r = INT_MAX;
|
||||
|
@ -1428,9 +1428,9 @@ krl_dump(struct ssh_krl *krl, FILE *f)
|
|||
}
|
||||
RB_FOREACH(rs, revoked_serial_tree, &rc->revoked_serials) {
|
||||
if (rs->lo == rs->hi)
|
||||
fprintf(f, "serial: %lld\n", rs->lo);
|
||||
fprintf(f, "serial: %llu\n", rs->lo);
|
||||
else {
|
||||
fprintf(f, "serial: %lld-%lld\n",
|
||||
fprintf(f, "serial: %llu-%llu\n",
|
||||
rs->lo, rs->hi);
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче