summaryrefslogtreecommitdiffstats
path: root/st.c
diff options
context:
space:
mode:
authorMatthias-Christian Ott <ott@enolink.de>2008-07-04 18:05:08 +0200
committerMatthias-Christian Ott <ott@enolink.de>2008-07-04 18:05:08 +0200
commitf982c1c37ccc4adc38260a132aa64ee29d1a1a8c (patch)
tree5d2ca4b666b91eed75ce2b16c3cd7ab785e66838 /st.c
parentsimplify flushing (diff)
downloadst-f982c1c37ccc4adc38260a132aa64ee29d1a1a8c.tar.gz
st-f982c1c37ccc4adc38260a132aa64ee29d1a1a8c.zip
replace eprint() functions with BSD error functions
Diffstat (limited to '')
-rw-r--r--st.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/st.c b/st.c
index e82faaa..8a8804f 100644
--- a/st.c
+++ b/st.c
@@ -1,13 +1,17 @@
1/* See LICENSE file for copyright and license details. */ 1/* See LICENSE file for copyright and license details. */
2#include "util.h"
3#include <stdio.h> 2#include <stdio.h>
3#include <stdlib.h>
4#include <string.h> 4#include <string.h>
5 5
6int 6int
7main(int argc, char *argv[]) { 7main(int argc, char *argv[]) {
8 if(argc == 2 && !strcmp("-v", argv[1])) 8 if(argc == 2 && !strcmp("-v", argv[1])) {
9 eprint("st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n"); 9 fprintf(stderr, "st-"VERSION", © 2007-2008 st engineers, see LICENSE for details\n");
10 else if(argc != 1) 10 exit(EXIT_SUCCESS);
11 eprint("usage: st [-v]\n"); 11 }
12 else if(argc != 1) {
13 fprintf(stderr, "usage: st [-v]\n");
14 exit(EXIT_FAILURE);
15 }
12 return 0; 16 return 0;
13} 17}