* path.h (etc::change_possible): Revert the type to bool.

(etc::set_last_modified): Remove obsolete function.
* path.cc (etc::change_possible): Revert type to bool.
(etc::test_file_change): Do not test for negative values of change_possible and
do not set it to -res.
(etc::dir_changed): When the handle is NULL, call memset instead of
test_file_changed.  When the handle is invalid, return true.
(etc::file_changed): Remove unneeded check for !fn[n].
This commit is contained in:
Christopher Faylor
2003-01-21 05:07:28 +00:00
parent 14d304da97
commit d8cde3a3ee
5 changed files with 20 additions and 22 deletions

View File

@@ -213,13 +213,12 @@ int path_prefix_p (const char *path1, const char *path2, int len1) __attribute__
class etc
{
static int curr_ix;
static signed char change_possible[MAX_ETC_FILES + 1];
static bool change_possible[MAX_ETC_FILES + 1];
static const char *fn[MAX_ETC_FILES + 1];
static FILETIME last_modified[MAX_ETC_FILES + 1];
static bool dir_changed (int);
static int init (int, const char *);
static bool file_changed (int);
static void set_last_modified (int, FILETIME&);
static bool test_file_change (int);
friend class pwdgrp;
};