[hackers] [lchat] simplify usage: remove useless use of printf || Jan Klemkow

From: <git_AT_suckless.org>
Date: Mon, 2 Apr 2018 02:17:59 +0200 (CEST)

commit ec8b3f85b73d80724d0ac489e19b2fd6b3c5e2d8
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Mon Apr 2 01:07:42 2018 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Mon Apr 2 01:07:42 2018 +0200

    simplify usage: remove useless use of printf

diff --git a/lchat.c b/lchat.c
index 439d6b9..3ace2e6 100644
--- a/lchat.c
+++ b/lchat.c
_AT_@ -162,8 +162,8 @@ fork_filter(int *read, int *write)
 static void
 usage(void)
 {
- fprintf(stderr, "lchat [-aeh] [-n lines] [-p prompt] [-t title] [-i in]"
- " [-o out] [directory]\n");
+ fputs("lchat [-aeh] [-n lines] [-p prompt] [-t title] [-i in] [-o out]"
+ " [directory]\n", stderr);
         exit(EXIT_FAILURE);
 }
 
Received on Mon Apr 02 2018 - 02:17:59 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 02 2018 - 02:24:22 CEST