summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils.c b/src/utils.c
index fee048d..3bf3cc0 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -14,14 +14,14 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
+#include "utils.h"
#include <stdio.h>
#include <stdlib.h>
-#include "utils.h"
-char *
-read_file_contents(char *file_path)
+char*
+read_file_contents(char* file_path)
{
- FILE *file;
+ FILE* file;
int file_size;
file = fopen(file_path, "r");
@@ -48,7 +48,7 @@ read_file_contents(char *file_path)
return NULL;
}
- char *file_content = (char *)calloc(file_size + 1, sizeof(char));
+ char* file_content = (char*)calloc(file_size + 1, sizeof(char));
if (file_content == NULL) {
fprintf(stderr, "Could not allocate mem for file_content\n");
fclose(file);