From: Tollef Fog Heen Date: Tue, 27 Oct 2009 20:35:21 +0000 (+0100) Subject: Move struct ykc_config earlier in the source file X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d86486abef3d300483f24e5596e60d22d8d9ae8c;p=yubikey-server-c Move struct ykc_config earlier in the source file --- diff --git a/src/main.c b/src/main.c index 993c4c7..db1a0d6 100644 --- a/src/main.c +++ b/src/main.c @@ -50,6 +50,17 @@ # define UNUSED(x) x #endif +struct ykc_config { + char *pidfile; + char *user; + int uid; + char *group; + int gid; + char *dbdef; + int port; + int log_otp; +}; + PGconn *db_conn; struct ykc_stats { @@ -491,16 +502,6 @@ void print_version(void) exit(0); } -struct ykc_config { - char *pidfile; - char *user; - int uid; - char *group; - int gid; - char *dbdef; - int port; -}; - int parse_config(const char *file, struct ykc_config *c) { FILE *f;