aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2016-01-30 09:50:18 +0100
committerChristoph Lohmann <20h@r-36.net>2016-01-30 09:50:18 +0100
commit82335583eba15e87749d0e663270353005fca30b (patch)
tree8bf669afd46884db175ff62320d6a0eb7c51b25a /st.c
parent0cd5117a2cfc4134712de748ec416be0655838b2 (diff)
downloadst-82335583eba15e87749d0e663270353005fca30b.tar.gz
st-82335583eba15e87749d0e663270353005fca30b.tar.bz2
Ok, no need for a separate version function.
This is just redundant metadata. Please add Java comment meta classes too.
Diffstat (limited to 'st.c')
-rw-r--r--st.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/st.c b/st.c
index 38abffb..005bf1d 100644
--- a/st.c
+++ b/st.c
@@ -486,7 +486,6 @@ static void *xrealloc(void *, size_t);
static char *xstrdup(char *);
static void usage(void);
-static void version(void);
static void (*handler[LASTEvent])(XEvent *) = {
[KeyPress] = kpress,
@@ -4342,12 +4341,6 @@ usage(void)
" [stty_args ...]\n", argv0, argv0);
}
-void
-version(void)
-{
- die("%s " VERSION " (c) 2010-2016 st engineers\n", argv0);
-}
-
int
main(int argc, char *argv[])
{
@@ -4395,7 +4388,7 @@ main(int argc, char *argv[])
opt_embed = EARGF(usage());
break;
case 'v':
- version();
+ die("%s " VERSION " (c) 2010-2016 st engineers\n", argv0);
break;
default:
usage();