circo

claudio's IRC oasis
git clone git://git.bitsmanent.org/circo
Log | Files | Refs | README | LICENSE

commit e9942a13027771bde428c773cc713420fd3abbfa
parent 97021c1c489bdb0aa9b91ab8d894f5719af36b78
Author: Claudio Alessi <smoppy@gmail.com>
Date:   Tue, 17 Apr 2018 21:41:35 +0200

Move relevant globals into config.h

Diffstat:
Mcirco.c | 5-----
Mconfig.def.h | 6++++++
2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/circo.c b/circo.c @@ -183,11 +183,6 @@ Message messages[] = { }; -char *host = "irc.freenode.org"; -char *port = "6667"; -char logfile[64] = "/tmp/circo.log"; -char nick[32]; - /* configuration, allows nested code to access above variables */ #include "config.h" diff --git a/config.def.h b/config.def.h @@ -1,5 +1,11 @@ /* See LICENSE file for copyright and license details. */ +/* defaults */ +char *host = "irc.freenode.org"; +char *port = "6667"; +char nick[32] = {0}; /* 0 means getenv("USER") */ +char logfile[64] = "/tmp/circo.log"; + /* Timestamp format; see strftime(3). */ #define TIMESTAMP_FORMAT "%Y-%m-%d %T | "