Skip to content

Commit

Permalink
Support pure C compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshi16 committed Mar 7, 2021
1 parent c2cd8d9 commit efd1390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion totp.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define T0 0
#define X 30 // time step

uint32_t totp(hotp_context *ctx, uint8_t digits = 6) {
uint32_t totp(hotp_context *ctx, uint8_t digits) {
time_t now = time(NULL);
ctx->counter = (now - T0) / X;

Expand Down

0 comments on commit efd1390

Please sign in to comment.