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

From: Carlos Torres <vlaadbrain_AT_gmail.com>
Date: Sat, 22 Dec 2012 13:27:04 -0500

I see you forgot a ']' in the diff.
On Dec 22, 2012 12:03 PM, <git_AT_suckless.org> wrote:

> 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__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__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 - 19:27:04 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 22 2012 - 19:36:07 CET