README and few little corrections on code readability

This commit is contained in:
Manzovince
2019-05-29 15:42:31 +02:00
parent 0236573b6d
commit 7a07d84d6c
4 changed files with 11 additions and 9 deletions

View File

@@ -18,11 +18,11 @@
char *read_file(char *file)
{
char buf[BUFF_SIZE];
int fd;
int rv;
int i;
char *result;
char buf[BUFF_SIZE];
int fd;
size_t rv;
int i;
char *result;
if (((fd = open(file, O_RDONLY)) < 0) \
|| ((rv = read(fd, &buf, BUFF_SIZE)) < 0) \