diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2020-02-07 14:34:16 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2020-02-07 14:34:16 +0000 |
commit | 50cb4549f4c9c41755495a1aab6de6bd5c37855c (patch) | |
tree | 2d6347b3133ebb63c6cb9156341a7ce5026d99b1 /usr.sbin/acme-client/main.c | |
parent | b7c0b4dd083b85b9edb8d25e8d075df10a8f3e32 (diff) |
Do not define variables in extern.h since this will lead to duplicate
definitions in every source file that includes extern.h.
From Michael Forney (mforney AT mforney DOT org), thanks!
OK jca
Diffstat (limited to 'usr.sbin/acme-client/main.c')
-rw-r--r-- | usr.sbin/acme-client/main.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/acme-client/main.c b/usr.sbin/acme-client/main.c index 7cbeeb7de03..49ff1ae659a 100644 --- a/usr.sbin/acme-client/main.c +++ b/usr.sbin/acme-client/main.c @@ -1,4 +1,4 @@ -/* $Id: main.c,v 1.52 2019/06/17 12:42:52 florian Exp $ */ +/* $Id: main.c,v 1.53 2020/02/07 14:34:15 florian Exp $ */ /* * Copyright (c) 2016 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -32,6 +32,9 @@ #define WWW_DIR "/var/www/acme" #define CONF_FILE "/etc/acme-client.conf" +int verbose; +enum comp proccomp; + int main(int argc, char *argv[]) { @@ -46,8 +49,6 @@ main(int argc, char *argv[]) int c, rc, revocate = 0; int popts = 0; pid_t pids[COMP__MAX]; - extern int verbose; - extern enum comp proccomp; size_t i, altsz, ne; struct acme_conf *conf = NULL; |