summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLi-Wen Hsu <lwhsu@FreeBSD.org>2020-11-02 01:34:58 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2020-11-02 01:34:58 +0000
commit68788e8b7436defa66e322d9d543cd10654cead1 (patch)
tree2ea5d2f14db97304c152fadd0a64520ad9ced06d
parent434235f7477530a69d87321b5c444886cdb4862c (diff)
downloadsrc-test2-68788e8b7436defa66e322d9d543cd10654cead1.tar.gz
src-test2-68788e8b7436defa66e322d9d543cd10654cead1.zip
Notes
-rw-r--r--bin/echo/echo.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/bin/echo/echo.c b/bin/echo/echo.c
index aa87499ce46f..9d8ad7272580 100644
--- a/bin/echo/echo.c
+++ b/bin/echo/echo.c
@@ -69,7 +69,7 @@ errexit(const char *prog, const char *reason)
write(STDERR_FILENO, "\n", 1);
exit(1);
}
-
+
int
main(int argc, char *argv[])
{
@@ -98,13 +98,12 @@ main(int argc, char *argv[])
while (argv[0] != NULL) {
size_t len;
-
+
len = strlen(argv[0]);
/*
- * If the next argument is NULL then this is
- * the last argument, therefore we need to check
- * for a trailing \c.
+ * If the next argument is NULL then this is the last argument,
+ * therefore we need to check for a trailing \c.
*/
if (argv[1] == NULL) {
/* is there room for a '\c' and is there one? */