From: Eric Bollengier Date: Mon, 15 Sep 2008 21:11:45 +0000 (+0000) Subject: ebl Use utime_t instead of time_t for update_stats() X-Git-Tag: Release-3.0.0~979 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fa6da8b57e1fcc8c030d87726d81dddd98b64c1d;p=bacula%2Fbacula ebl Use utime_t instead of time_t for update_stats() git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7597 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/cats/protos.h b/bacula/src/cats/protos.h index f52e73029f..0ff887981a 100644 --- a/bacula/src/cats/protos.h +++ b/bacula/src/cats/protos.h @@ -134,6 +134,6 @@ int db_update_counter_record(JCR *jcr, B_DB *mdb, COUNTER_DBR *cr); int db_add_digest_to_file_record(JCR *jcr, B_DB *mdb, FileId_t FileId, char *digest, int type); int db_mark_file_record(JCR *jcr, B_DB *mdb, FileId_t FileId, JobId_t JobId); void db_make_inchanger_unique(JCR *jcr, B_DB *mdb, MEDIA_DBR *mr); -int db_update_stats(JCR *jcr, B_DB *mdb, time_t age); +int db_update_stats(JCR *jcr, B_DB *mdb, utime_t age); #endif /* __SQL_PROTOS_H */ diff --git a/bacula/src/cats/sql_update.c b/bacula/src/cats/sql_update.c index 82a64ac2af..0e0c8545bf 100644 --- a/bacula/src/cats/sql_update.c +++ b/bacula/src/cats/sql_update.c @@ -130,7 +130,7 @@ db_update_job_start_record(JCR *jcr, B_DB *mdb, JOB_DBR *jr) * age seconds */ int -db_update_stats(JCR *jcr, B_DB *mdb, time_t age) +db_update_stats(JCR *jcr, B_DB *mdb, utime_t age) { char ed1[30]; utime_t now = (utime_t)time(NULL); diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 696db3f6f8..2c071dcd0f 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -18,6 +18,8 @@ dbdriver remove reader/writer in FOPTS???? General: +15Sep08 +ebl Remove time_t from update_stats() 14Sep08 kes Modify the license of the example plugin program to allow it to be used by anyone for making a Bacula plugin.