Skip to content

Commit

Permalink
format code
Browse files Browse the repository at this point in the history
  • Loading branch information
dongyx committed Oct 28, 2023
1 parent e025b7a commit 3b4c18d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hardv.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ int modquiz(struct card *card, time_t now, int card1)
case 0:
sety(card, now);
return 1;
case 1: setn(card, now);
case 1:
setn(card, now);
return 1;
}
return 0;
Expand Down Expand Up @@ -550,7 +551,7 @@ char *normv(char *s, char *buf, int n)
if (*sp != '\t' || sp > s && sp[-1] != '\n')
*bp++ = *sp;
if (bp == &buf[n])
return NULL;
err("Buffer too small to normalize value\n");
while (bp > buf && bp[-1] == '\n')
bp--;
*bp = '\0';
Expand Down

0 comments on commit 3b4c18d

Please sign in to comment.