[hackers] [surf] Simplify usage() || Quentin Rameau

From: <git_AT_suckless.org>
Date: Mon, 8 May 2017 14:08:23 +0200 (CEST)

commit d984d12de719f6a8e7f96c04ad3a53ab73a27df8
Author: Quentin Rameau <quinq_AT_fifth.space>
AuthorDate: Thu May 4 10:22:29 2017 +0200
Commit: Quentin Rameau <quinq_AT_fifth.space>
CommitDate: Thu May 4 10:29:02 2017 +0200

    Simplify usage()
    
    There's no real need for using the real executable call name, especially
    with basename requiring special care.

diff --git a/surf.c b/surf.c
index 05d173e..0fcf22e 100644
--- a/surf.c
+++ b/surf.c
_AT_@ -256,9 +256,9 @@ char *argv0;
 void
 usage(void)
 {
- die("usage: %s [-bBdDfFgGiIkKmMnNpPsStTvwxX] [-a cookiepolicies ] "
- "[-c cookiefile] [-C stylefile] [-e xid] [-r scriptfile] "
- "[-u useragent] [-z zoomlevel] [uri]\n", basename(argv0));
+ die("usage: surf [-bBdDfFgGiIkKmMnNpPsStTvwxX]\n"
+ "[-a cookiepolicies ] [-c cookiefile] [-C stylefile] [-e xid]\n"
+ "[-r scriptfile] [-u useragent] [-z zoomlevel] [uri]\n");
 }
 
 void
Received on Mon May 08 2017 - 14:08:23 CEST

This archive was generated by hypermail 2.3.0 : Mon May 08 2017 - 14:12:24 CEST