[hackers] [dwmstatus] Removing the deprecated bzero() and changing the style to mine. || Christoph Lohmann

From: <git_AT_suckless.org>
Date: Sat, 22 Dec 2012 18:03:28 +0100

commit eee21676bef0b25e8b6dfb4445073cc0368f60a5
Author: Christoph Lohmann <20h_AT_r-36.net>
Date: Sat Dec 22 18:01:16 2012 +0100

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

diff --git a/dwmstatus.c b/dwmstatus.c
index 9b2703b..4f6a3f4 100644
--- a/dwmstatus.c
+++ b/dwmstatus.c
_AT_@ -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);
_AT_@ -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);
Received on Sat Dec 22 2012 - 18:03:28 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 22 2012 - 18:12:05 CET