new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git] / src / os_maild / mail_list.h
old mode 100755 (executable)
new mode 100644 (file)
index 4e62132..613b8f2
@@ -1,38 +1,32 @@
-/* @(#) $Id: mail_list.h,v 1.6 2009/06/24 17:06:30 dcid Exp $ */
-
 /* Copyright (C) 2009 Trend Micro Inc.
  * All rights reserved.
  *
  * This program is a free software; you can redistribute it
  * and/or modify it under the terms of the GNU General Public
- * License (version 3) as published by the FSF - Free Software
+ * License (version 2) as published by the FSF - Free Software
  * Foundation
  */
-       
-       
-#ifndef _MAILIST__H
-#define _MAILIST__H
 
+#ifndef _MAILLIST__H
+#define _MAILLIST__H
 
 /* Events List structure */
-typedef struct _MailNode
-{
+typedef struct _MailNode {
     MailMsg *mail;
     struct _MailNode *next;
     struct _MailNode *prev;
-}MailNode;
-
+} MailNode;
 
-/* Add an email to the list  */
-void OS_AddMailtoList(MailMsg *ml);
+/* Add an email to the list */
+void OS_AddMailtoList(MailMsg *ml) __attribute__((nonnull));
 
-/* Return the last event from the Event list 
+/* Return the last event from the Event list
  * removing it from there
  */
-MailNode *OS_PopLastMail();
+MailNode *OS_PopLastMail(void);
 
-/* Returns a pointer to the last email, not removing it */
-MailNode *OS_CheckLastMail();
+/* Return a pointer to the last email, not removing it */
+MailNode *OS_CheckLastMail(void);
 
 /* Create the mail list. Maxsize must be specified */
 void OS_CreateMailList(int maxsize);
@@ -43,4 +37,5 @@ void FreeMail(MailNode *ml);
 /* Free email msg */
 void FreeMailMsg(MailMsg *ml);
 
-#endif
+#endif /* _MAILLIST__H */
+