Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
:
netflow
>
flow-tools
> flow-tools_time_t.diff
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File flow-tools_time_t.diff of Package flow-tools (Revision 12)
Currently displaying revision
12
,
show latest
--- ./lib/ftfile.c.old 2005-08-06 16:01:18.228015904 +0200 +++ ./lib/ftfile.c 2005-08-06 16:04:55.087048320 +0200 @@ -410,7 +410,7 @@ * */ void ftfile_pathname(char *buf, int bsize, int nest, struct ftver ftv, - int done, u_int32 ftime) + int done, time_t ftime) { struct tm *tm; char *prefix, dbuf[64]; @@ -418,7 +418,7 @@ char gmt_sign; int tm_gmtoff; - if (!(tm = localtime ((time_t*)&ftime))) { + if (!(tm = localtime (&ftime))) { snprintf(buf, bsize, "."); } @@ -499,7 +499,7 @@ * returns -1 on error * */ -int ftfile_mkpath(u_int32 ftime, int nest) +int ftfile_mkpath(time_t ftime, int nest) { struct tm *tm; char buf[32]; @@ -512,7 +512,7 @@ if ((nest > 3) || (nest < -3)) return -1; - if (!(tm = localtime ((time_t*)&ftime))) + if (!(tm = localtime (&ftime))) return -1; if (nest == -1) --- ./lib/ftlib.h.old 2005-08-06 16:06:19.836164496 +0200 +++ ./lib/ftlib.h 2005-08-06 16:05:47.261116656 +0200 @@ -2710,9 +2710,9 @@ int ftfile_dump(struct ftfile_entries *fte); struct ftfile_entry *ftfile_entry_new(int len); void ftfile_entry_free(struct ftfile_entry *entry); -int ftfile_mkpath(u_int32 ftime, int nest); +int ftfile_mkpath(time_t ftime, int nest); void ftfile_pathname(char *buf, int bsize, int nest, struct ftver ftv, - int done, u_int32 ftime); + int done, time_t ftime);