From 819b618e0f5665e5545e2458f02e99f067a76a28 Mon Sep 17 00:00:00 2001 From: Chris Cromer Date: Sat, 19 Jun 2021 20:23:49 -0400 Subject: [PATCH] add protection to headers --- src/include/loop.h | 3 +++ src/include/user.h | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/include/loop.h b/src/include/loop.h index 4543551..24b4c28 100644 --- a/src/include/loop.h +++ b/src/include/loop.h @@ -1,3 +1,6 @@ +#ifndef _MYSHELLIN_LOOP +#define _MYSHELLIN_LOOP void remove_new_line(char *line); void print_input_line(); void loop(); +#endif diff --git a/src/include/user.h b/src/include/user.h index b9b383a..0b4b055 100644 --- a/src/include/user.h +++ b/src/include/user.h @@ -1 +1,4 @@ +#ifndef _MYSHELLIN_USER +#define _MYSHELLIN_USER char *get_user(); +#endif