dwmstatus

a simple dwm statusbar updater written in C.
git clone git://git.suckless.org/dwmstatus
Log | Files | Refs | LICENSE

commit eee21676bef0b25e8b6dfb4445073cc0368f60a5
parent 670007723c801e08bd6a6124cd9d760f6682ca3c
Author: Christoph Lohmann <20h@r-36.net>
Date:   Sat, 22 Dec 2012 18:01:16 +0100

Removing the deprecated bzero() and changing the style to mine.

Diffstat:
dwmstatus.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dwmstatus.c b/dwmstatus.c @@ -55,7 +55,7 @@ mktimes(char *fmt, char *tzname) time_t tim; struct tm *timtm; - bzero(buf, sizeof(buf)); + memset(buf, 0, sizeof(buf)); settz(tzname); tim = time(NULL); timtm = localtime(&tim); @@ -112,7 +112,7 @@ main(void) tmutc = mktimes("%H:%M", tzutc); tmbln = mktimes("KW %W %a %d %b %H:%M %Z %Y", tzberlin); - status = smprintf("[L: %s|A: %s|U: %s|%s]", + status = smprintf("L:%s A:%s U:%s %s]", avgs, tmar, tmutc, tmbln); setstatus(status); free(avgs);