remove typedef from struct recptypes
[citadel.git] / citadel / modules / imap / imap_acl.c
index 207a32817c1bce11f7cd6dd96dc436ac455ad9bb..97b5f9630a0774f194c36c440bd3c8351a103321 100644 (file)
@@ -1,8 +1,7 @@
 /*
  * Functions which implement RFC2086 (and maybe RFC4314) (IMAP ACL extension)
  *
- *
- * Copyright (c) 2007-2011 by the citadel.org team
+ * Copyright (c) 2007-2017 by the citadel.org team
  *
  *  This program is open source software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
 #include <pwd.h>
 #include <errno.h>
 #include <sys/types.h>
-
-#if TIME_WITH_SYS_TIME
-# include <sys/time.h>
-# include <time.h>
-#else
-# if HAVE_SYS_TIME_H
-#  include <sys/time.h>
-# else
-#  include <time.h>
-# endif
-#endif
-
+#include <time.h>
 #include <sys/wait.h>
 #include <ctype.h>
 #include <string.h>
@@ -221,7 +209,7 @@ void imap_listrights(int num_parms, ConstStr *Params) {
        char savedroom[ROOMNAMELEN];
        int msgs, new;
        int ret;
-       recptypes *valid;
+       struct recptypes *valid;
        struct ctdluser temp;
 
        if (num_parms != 4) {