+static void save_close_event(const char *path)\r
+{\r
+ time_t now = time(NULL);\r
+\r
+ /* Check if it's a close for the same event as the last one */\r
+ if (last_close_event.time /* is there any saved event ? */\r
+ && (strcmp(path, last_close_event.path) != 0)) {\r
+ /* no, so send the saved event out now */\r
+ send_fce_event(last_close_event.path, FCE_FILE_MODIFY);\r
+ }\r
+\r
+ LOG(log_debug, logtype_afpd, "save_close_event: %s", path);\r
+\r
+ last_close_event.time = now;\r
+ strncpy(last_close_event.path, path, MAXPATHLEN);\r
+}\r
+\r