]> err.no Git - yubikey-server-c/commitdiff
Move struct ykc_config earlier in the source file
authorTollef Fog Heen <tfheen@err.no>
Tue, 27 Oct 2009 20:35:21 +0000 (21:35 +0100)
committerTollef Fog Heen <tfheen@err.no>
Tue, 27 Oct 2009 20:35:21 +0000 (21:35 +0100)
src/main.c

index 993c4c7e3e37c297904d3092b51ae3222cafc910..db1a0d6bf5fa46114e1eceaf316f6e52ee05da01 100644 (file)
 # 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;