From 52c2bb5e135e051d8b5ce11e6438346bdcae4607 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Ant=C3=B4nio?= Date: Tue, 28 Feb 2023 01:56:07 -0300 Subject: [PATCH] fix: Now readlink compiles again. --- readlink/readlink.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readlink/readlink.c b/readlink/readlink.c index 32e62b7..c83339c 100644 --- a/readlink/readlink.c +++ b/readlink/readlink.c @@ -68,11 +68,11 @@ int main(int argc, char *argv[]) { * printing anything and will exit with non-zero status unless we're * using the -f flag (flags.follow_link = 1). */ - if (flags.follow_link){ + if (flags.follow_link) { if ( realpath(argv[0], buffer) == NULL ) { exit(1); } - } else + } else { if ( (name_size = readlink(argv[0], buffer, sizeof(buffer - 1))) < 0 ) { exit(1); }