diff options
| author | Bond_009 <bond.009@outlook.com> | 2020-12-06 14:24:28 +0100 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2020-12-06 14:24:28 +0100 |
| commit | 1b69fdf2a03937cc58cdde2ce2213f75acc4b05e (patch) | |
| tree | a547ba46725de78ba31ae6e2d010f7004c74ecf7 /5/part2_fast.c | |
| parent | 58b1ffeba8a66990d306ed15503955489caa4c94 (diff) | |
Style fixes for day 5
Diffstat (limited to '5/part2_fast.c')
| -rw-r--r-- | 5/part2_fast.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/5/part2_fast.c b/5/part2_fast.c index df2a585..9c4753e 100644 --- a/5/part2_fast.c +++ b/5/part2_fast.c @@ -59,13 +59,11 @@ int missing_seat_id(const char *filename) int max = 0; while (fgets(buffer, 16, file)) { int tmp = seat_id(buffer); - if (tmp > max) - { + if (tmp > max) { max = tmp; } - if (tmp < min) - { + if (tmp < min) { min = tmp; } @@ -78,6 +76,8 @@ int missing_seat_id(const char *filename) } } + fclose(file); + return 0; } |
