From 08991274dcbc06e4e0d0a94a942f24fd46b1c37c Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 11 Aug 2023 08:20:34 -0400 Subject: [PATCH] format update --- src/modules/rlm_totp/rlm_totp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/rlm_totp/rlm_totp.c b/src/modules/rlm_totp/rlm_totp.c index 98804e4c9d..d577e6a197 100644 --- a/src/modules/rlm_totp/rlm_totp.c +++ b/src/modules/rlm_totp/rlm_totp.c @@ -319,7 +319,7 @@ int main(int argc, char **argv) if (strcmp(argv[2], "now") == 0) { now = time(NULL); } else { - (void) sscanf(argv[2], "%lu", &now); + (void) sscanf(argv[2], "%llu", &now); } if (totp_cmp(NULL, (time_t) now, (uint8_t const *) argv[3], strlen(argv[3]), argv[4]) == 0) { @@ -329,7 +329,7 @@ int main(int argc, char **argv) return 1; } - fprintf(stderr, "Unknown command argv[1]\n", argv[1]); + fprintf(stderr, "Unknown command %s\n", argv[1]); return 1; } #endif -- 2.47.3