Simplify usage()
authorQuentin Rameau <quinq@fifth.space>
Thu, 4 May 2017 08:22:29 +0000 (10:22 +0200)
committerQuentin Rameau <quinq@fifth.space>
Thu, 4 May 2017 08:29:02 +0000 (10:29 +0200)
There's no real need for using the real executable call name, especially
with basename requiring special care.

surf.c

diff --git a/surf.c b/surf.c
index 05d173e..0fcf22e 100644 (file)
--- a/surf.c
+++ b/surf.c
@@ -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