From: Trent Huber Date: Tue, 13 May 2025 06:20:35 +0000 (-0400) Subject: Rewrite unnecesary printf()'s X-Git-Url: https://trenthuber.com/code?a=commitdiff_plain;h=a2cb47c262bee92a2f7cab689e42ae8452c9e952;p=cbs.git Rewrite unnecesary printf()'s --- diff --git a/cbs.c b/cbs.c index 688b26a..36dd4d8 100644 --- a/cbs.c +++ b/cbs.c @@ -46,7 +46,7 @@ void run(char *path, char **args, char *what, char *who) { size_t i; for (i = 0; args[i]; ++i) printf("%s ", args[i]); - printf("\n"); + putchar('\n'); if (execve(path, args, environ) == -1) err(EXIT_FAILURE, "Unable to %s `%s'", what, who); @@ -58,7 +58,7 @@ void build(char *path) { if (path) { if ((cpid = fork())) { await(cpid, "run", "build"); - printf("cd ..\n"); + puts("cd .."); return; } printf("cd %s\n", path);