git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3280d6d
)
fix build
author
Michal Voců
<michal@ruk.cuni.cz>
Mon, 6 Apr 2009 20:20:07 +0000
(20:20 +0000)
committer
Michal Voců
<michal@ruk.cuni.cz>
Mon, 6 Apr 2009 20:20:07 +0000
(20:20 +0000)
org.glite.lb.logger/src/event_store.c
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lb.logger/src/event_store.c
b/org.glite.lb.logger/src/event_store.c
index
5212c4b
..
f132112
100644
(file)
--- a/
org.glite.lb.logger/src/event_store.c
+++ b/
org.glite.lb.logger/src/event_store.c
@@
-5,6
+5,7
@@
#include <errno.h>
#include <string.h>
#include <stdlib.h>
+#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
@@
-393,7
+394,7
@@
int
event_store_rotate_file(struct event_store *es)
{
int num;
- time_t timestamp = time();
+ time_t timestamp = time(
NULL
);
char newname[MAXPATHLEN+1];
/* do not rotate already rotated files */