k9core

Unnamed repository
Log | Files | Refs | LICENSE

commit 976d1ed2bfc15b3f9738de0355b1719fcae94fc9
parent 62ecbded9266000d9ba887ecf8075a8a61172d2f
Author: qorg11 <qorg@vxempire.xyz>
Date:   Tue,  2 Jun 2020 01:57:08 +0200

idk why is this merge important tbh
Merge branch 'master' of gitlab.com:call-cc/k9core

Diffstat:
Msrc/dirname.c | 7++++---
Msrc/pwd.c | 3++-
2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/dirname.c b/src/dirname.c @@ -2,9 +2,10 @@ #include <libgen.h> int -main(int argc, char *argv[]) { - char *dir; - if((dir = dirname(argv[1])) == NULL) { +main(int argc, char *argv[]) +{ + char *dir = dirname(argv[1]); + if(dir == NULL) { fprintf(stderr, "%s", argv[0]); return 1; } diff --git a/src/pwd.c b/src/pwd.c @@ -2,7 +2,8 @@ #include <stdio.h> int -main() { +main() +{ puts(getcwd(NULL, 0)); return 1; }