fix type inconsistancies

This commit is contained in:
randomuser 2022-11-13 15:07:27 +00:00
parent 7d705c4dcf
commit 17b91b436f
1 changed files with 1 additions and 1 deletions

2
file.c
View File

@ -11,7 +11,7 @@ void populate_buffer(char *buffer, char pattern) {
*(buffer + i + 1) = '\0'; *(buffer + i + 1) = '\0';
} }
int read_file_into_buffer(char *filename, char *buffer, int length) { int read_file_into_buffer(char *filename, char *buffer, ssize_t length) {
int i; int i;
if (!access(filename, F_OK) == 0) { if (!access(filename, F_OK) == 0) {
populate_buffer(buffer, '?'); populate_buffer(buffer, '?');