From d8cde3a3eeacd44ecc93ad092318ab243a423fb5 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 21 Jan 2003 05:07:28 +0000 Subject: * 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]. --- winsup/cygwin/path.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'winsup/cygwin/path.h') diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 7fab2044d..520b4907a 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -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; }; -- cgit v1.2.3