summaryrefslogtreecommitdiff
path: root/1/part1.c
diff options
context:
space:
mode:
authorBond_009 <bond.009@outlook.com>2020-12-03 17:19:04 +0100
committerBond_009 <bond.009@outlook.com>2020-12-03 17:19:04 +0100
commit0f39612c19a4865dcaf5963590b985d4f29c4bd3 (patch)
treedf8e275e97d30cfa5bc6ee947f03c98276868a63 /1/part1.c
parent3da231113ccdd1b777028a4990dd035d07facdd5 (diff)
Style fixes
Diffstat (limited to '1/part1.c')
-rw-r--r--1/part1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/1/part1.c b/1/part1.c
index f4e5d43..62ef852 100644
--- a/1/part1.c
+++ b/1/part1.c
@@ -5,7 +5,7 @@
#define INPUT_LEN 200
-int repair(int * arr)
+int repair(const int * arr)
{
for (int i = 0; i < INPUT_LEN; i++) {
for (int j = 0; j < INPUT_LEN; j++) {
@@ -20,7 +20,7 @@ int repair(int * arr)
int main()
{
- FILE * file = fopen("input", "r");
+ FILE *file = fopen("input", "r");
char buffer[8] = { 0 };
int input[INPUT_LEN] = { 0 };