diff options
Diffstat (limited to 'src/analysis/db/misc')
-rw-r--r-- | src/analysis/db/misc/timestamp.c | 8 | ||||
-rw-r--r-- | src/analysis/db/misc/timestamp.h | 5 |
2 files changed, 3 insertions, 10 deletions
diff --git a/src/analysis/db/misc/timestamp.c b/src/analysis/db/misc/timestamp.c index 1d2fcd9..6453953 100644 --- a/src/analysis/db/misc/timestamp.c +++ b/src/analysis/db/misc/timestamp.c @@ -68,13 +68,11 @@ void init_timestamp(timestamp_t *timestamp) bool timestamp_is_younger(timestamp_t stamp, timestamp_t limit) { - if (limit == TIMESTAMP_ALL_ACTIVE) - return true; + bool result; /* Bilan à retourner */ - if (limit == TIMESTAMP_ALL_INACTIVE) - return false; + result = (stamp <= limit); - return (stamp <= limit); + return result; } diff --git a/src/analysis/db/misc/timestamp.h b/src/analysis/db/misc/timestamp.h index 4ff714e..002f4d4 100644 --- a/src/analysis/db/misc/timestamp.h +++ b/src/analysis/db/misc/timestamp.h @@ -38,11 +38,6 @@ typedef uint64_t timestamp_t; -/* Valeurs particulières */ -#define TIMESTAMP_ALL_ACTIVE 0 // REMME -#define TIMESTAMP_ALL_INACTIVE 1 // REMME - - /* Obtient un horodatage initialisé au moment même. */ void init_timestamp(timestamp_t *); |