aboutsummaryrefslogtreecommitdiff
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
parent0cd5117a2cfc4134712de748ec416be0655838b2 (diff)
downloadst-patched-82335583eba15e87749d0e663270353005fca30b.tar.bz2
st-patched-82335583eba15e87749d0e663270353005fca30b.tar.xz
st-patched-82335583eba15e87749d0e663270353005fca30b.zip
Ok, no need for a separate version function.
This is just redundant metadata. Please add Java comment meta classes too.
-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);
486static char *xstrdup(char *); 486static char *xstrdup(char *);
487 487
488static void usage(void); 488static void usage(void);
489static void version(void);
490 489
491static void (*handler[LASTEvent])(XEvent *) = { 490static void (*handler[LASTEvent])(XEvent *) = {
492 [KeyPress] = kpress, 491 [KeyPress] = kpress,
@@ -4342,12 +4341,6 @@ usage(void)
4342 " [stty_args ...]\n", argv0, argv0); 4341 " [stty_args ...]\n", argv0, argv0);
4343} 4342}
4344 4343
4345void
4346version(void)
4347{
4348 die("%s " VERSION " (c) 2010-2016 st engineers\n", argv0);
4349}
4350
4351int 4344int
4352main(int argc, char *argv[]) 4345main(int argc, char *argv[])
4353{ 4346{
@@ -4395,7 +4388,7 @@ main(int argc, char *argv[])
4395 opt_embed = EARGF(usage()); 4388 opt_embed = EARGF(usage());
4396 break; 4389 break;
4397 case 'v': 4390 case 'v':
4398 version(); 4391 die("%s " VERSION " (c) 2010-2016 st engineers\n", argv0);
4399 break; 4392 break;
4400 default: 4393 default:
4401 usage(); 4394 usage();