From cf8326c9ffc760e6c1dd863bcd59e58de1ba232b Mon Sep 17 00:00:00 2001 From: Aaron Gutierrez Date: Thu, 7 Aug 2025 21:11:55 -0700 Subject: [PATCH] 18 -> 17 --- .gitignore | 0 Makefile | 2 +- annotate.c | 5 +++-- 3 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 .gitignore mode change 100644 => 100755 Makefile mode change 100644 => 100755 annotate.c diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 index c50efcf..060d1cb --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -CFLAGS=--std=c18 -O2 -Wall -Wextra -Werror -pedantic +CFLAGS=--std=c17 -O2 -Wall -Wextra -Werror -pedantic annotate: annotate.o diff --git a/annotate.c b/annotate.c old mode 100644 new mode 100755 index 9eab74d..9d3f2b2 --- a/annotate.c +++ b/annotate.c @@ -6,7 +6,8 @@ #define BUF_SIZE 1024 -void print_now() { + +void print_now(void) { time_t now; time(&now); @@ -30,7 +31,7 @@ void print_now() { * Program that reads from STDIN and writes to STDOUT with each line annotated * with the current date and time */ -int main() { +int main(void) { char buffer[BUF_SIZE]; // when true, print the time on the next iteration