X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=8a8804f9cb0e0d97c25ec9a09deacb675d4a008f;hb=f982c1c37ccc4adc38260a132aa64ee29d1a1a8c;hp=9b1d131b882f9061936f79a56f6d419cdd7faf0b;hpb=339e7f35713ae0c35be2537e6639cd5eee592acb;p=st.git diff --git a/st.c b/st.c index 9b1d131..8a8804f 100644 --- a/st.c +++ b/st.c @@ -1,13 +1,17 @@ /* See LICENSE file for copyright and license details. */ -#include "util.h" #include +#include #include int -Xmain(int argc, char *argv[]) { - if(argc == 2 && !strcmp("-v", argv[1])) - eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n"); - else if(argc != 1) - eprint("usage: st [-v]\n"); +main(int argc, char *argv[]) { + if(argc == 2 && !strcmp("-v", argv[1])) { + fprintf(stderr, "st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n"); + exit(EXIT_SUCCESS); + } + else if(argc != 1) { + fprintf(stderr, "usage: st [-v]\n"); + exit(EXIT_FAILURE); + } return 0; }