projects
/
ossec-hids.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new upstream release (3.3.0); modify package compatibility for Stretch
[ossec-hids.git]
/
src
/
headers
/
file-queue.h
diff --git
a/src/headers/file-queue.h
b/src/headers/file-queue.h
old mode 100755
(executable)
new mode 100644
(file)
index
0865a8f
..
80c3e6e
--- a/
src/headers/file-queue.h
+++ b/
src/headers/file-queue.h
@@
-1,6
+1,3
@@
-/* @(#) $Id: ./src/headers/file-queue.h, 2011/09/08 dcid Exp $
- */
-
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
*
/* Copyright (C) 2009 Trend Micro Inc.
* All right reserved.
*
@@
-10,8
+7,6
@@
* Foundation
*/
* Foundation
*/
-
-
#ifndef __CFQUEUE_H
#define __CFQUEUE_H
#ifndef __CFQUEUE_H
#define __CFQUEUE_H
@@
-19,25
+14,23
@@
#define FQ_TIMEOUT 5
/* File queue */
#define FQ_TIMEOUT 5
/* File queue */
-typedef struct _file_queue
-{
- int last_change;
+typedef struct _file_queue {
+ time_t last_change;
int year;
int day;
int flags;
char mon[4];
int year;
int day;
int flags;
char mon[4];
- char file_name[MAX_FQUEUE +1];
+ char file_name[MAX_FQUEUE + 1];
FILE *fp;
struct stat f_status;
FILE *fp;
struct stat f_status;
-}file_queue;
-
+} file_queue;
-/*** Prototypes */
#include "read-alert.h"
#include "read-alert.h"
-int Init_FileQueue(file_queue *fileq, struct tm *p, int flags);
+int Init_FileQueue(file_queue *fileq, const struct tm *p, int flags) __attribute__((nonnull));
+
+alert_data *Read_FileMon(file_queue *fileq, const struct tm *p, unsigned int timeout) __attribute__((nonnull));
-alert_data *Read_FileMon(file_queue *fileq, struct tm *p, int timeout);
+#endif /* __CFQUEUE_H */
-#endif