X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Fos_maild%2Fmail_list.h;h=613b8f22d6d615a663caa1f298b4825e365b07ba;hb=3f728675941dc69d4e544d3a880a56240a6e394a;hp=6d2587a20b42fa8174076d311bea8628b680df2d;hpb=6ef2f786c6c8ead94841b5f93baf9f43421f08c8;p=ossec-hids.git diff --git a/src/os_maild/mail_list.h b/src/os_maild/mail_list.h old mode 100755 new mode 100644 index 6d2587a..613b8f2 --- a/src/os_maild/mail_list.h +++ b/src/os_maild/mail_list.h @@ -1,6 +1,3 @@ -/* @(#) $Id: ./src/os_maild/mail_list.h, 2011/09/08 dcid Exp $ - */ - /* Copyright (C) 2009 Trend Micro Inc. * All rights reserved. * @@ -10,30 +7,26 @@ * 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 * 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); @@ -44,4 +37,5 @@ void FreeMail(MailNode *ml); /* Free email msg */ void FreeMailMsg(MailMsg *ml); -#endif +#endif /* _MAILLIST__H */ +