[hackers] [quark] util: don't initialize server, it's already done in main() || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Mon, 5 Mar 2018 01:00:40 +0100 (CET)

commit 01ed0dac83ed27faf5e8dc90c893b1cd0e8a917f
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
AuthorDate: Mon Mar 5 00:56:24 2018 +0100
Commit: Laslo Hunhold <dev_AT_frign.de>
CommitDate: Mon Mar 5 01:00:50 2018 +0100

    util: don't initialize server, it's already done in main()
    
    ... this removes a stupid compiler warning too.

diff --git a/LICENSE b/LICENSE
index a468f28..8d6d827 100644
--- a/LICENSE
+++ b/LICENSE
_AT_@ -5,7 +5,7 @@ Copyright 2016-2018 Laslo Hunhold <dev_AT_frign.de>
 Copyright 2004 Ted Unangst <tedu_AT_openbsd.org>
 Copyright 2004 Todd C. Miller <Todd.Miller_AT_courtesan.com>
 Copyright 2008 Otto Moerbeek <otto_AT_drijf.net>
-Copyright 2017 Hiltjo Posthuma <hiltjo_AT_codemadness.org>
+Copyright 2017-2018 Hiltjo Posthuma <hiltjo_AT_codemadness.org>
 Copyright 2017-2018 Quentin Rameau <quinq_AT_fifth.space>
 Copyright 2018 Josuah Demangeon <mail_AT_josuah.net>
 
diff --git a/util.c b/util.c
index d3db040..332a637 100644
--- a/util.c
+++ b/util.c
_AT_@ -12,7 +12,7 @@
 #include "util.h"
 
 char *argv0;
-struct server s = { 0 };
+struct server s;
 
 static void
 verr(const char *fmt, va_list ap)
Received on Mon Mar 05 2018 - 01:00:40 CET

This archive was generated by hypermail 2.3.0 : Mon Mar 05 2018 - 01:12:31 CET