From d86486abef3d300483f24e5596e60d22d8d9ae8c Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Tue, 27 Oct 2009 21:35:21 +0100 Subject: [PATCH] Move struct ykc_config earlier in the source file --- src/main.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) 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; -- 2.39.5