X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/ff65c4a413cfc3626280a4ea52be99472fbbe48a..666f28520126fa54fca128b172c065b8a29a7f76:/slstatus.c?ds=sidebyside diff --git a/slstatus.c b/slstatus.c index 19bc127..c1cf8ac 100644 --- a/slstatus.c +++ b/slstatus.c @@ -1,6 +1,4 @@ /* See LICENSE file for copyright and license details. */ -#include -#include #include #include #include @@ -55,9 +53,10 @@ main(int argc, char *argv[]) struct sigaction act; struct timespec start, current, diff, intspec, wait; size_t i, len; - int sflag = 0; + int sflag; char status[MAXLEN]; + sflag = 0; ARGBEGIN { case 's': sflag = 1; @@ -78,7 +77,7 @@ main(int argc, char *argv[]) sigaction(SIGTERM, &act, NULL); if (!sflag && !(dpy = XOpenDisplay(NULL))) { - fprintf(stderr, "slstatus: cannot open display"); + fprintf(stderr, "Cannot open display"); return 1; }