Change indentation to follow the updated standard.
Alot of mixed indentation. use 4 chars wide soft tabs.
This commit is contained in:
parent
9cc5420447
commit
f46ae1970b
51 changed files with 634 additions and 639 deletions
|
|
@ -25,8 +25,8 @@ void inotify_exit(void) {
|
|||
if (event_queue) {
|
||||
notify_event *e;
|
||||
while((e = queue_dequeue(event_queue)))
|
||||
notify_event_del(e);
|
||||
queue_destroy(event_queue);
|
||||
notify_event_del(e);
|
||||
queue_destroy(event_queue);
|
||||
event_queue = NULL;
|
||||
}
|
||||
}
|
||||
|
|
@ -50,7 +50,7 @@ int inotify_ignore(const char *path) {
|
|||
/* unmap and remove watch */
|
||||
if (inotify_unmap_path(path) == 0) {
|
||||
logmsg(LOG_DEBUG, "remove watch: %i %s", wd, path);
|
||||
|
||||
|
||||
if (inotify_backend_ignore(wd) < 0)
|
||||
return -1;
|
||||
}
|
||||
|
|
@ -61,24 +61,24 @@ static void proc_event(struct inotify_event *iev) {
|
|||
|
||||
int i;
|
||||
struct list *watch_list;
|
||||
|
||||
|
||||
logmsg(LOG_DEBUG, "RAW EVENT: %i, %x, %s", iev->wd, iev->mask, iev->name);
|
||||
|
||||
if (iev->mask & IN_IGNORED) {
|
||||
inotify_unmap_wd(iev->wd);
|
||||
return;
|
||||
}
|
||||
|
||||
/* lookup watch descriptors */
|
||||
watch_list = inotify_map_get_path(iev->wd);
|
||||
|
||||
if (!watch_list) {
|
||||
logmsg(LOG_WARN, "-- IGNORING EVENT -- invalid watchdescriptor %i", iev->wd);
|
||||
return;
|
||||
}
|
||||
|
||||
/* lookup watch descriptors */
|
||||
watch_list = inotify_map_get_path(iev->wd);
|
||||
|
||||
if (!watch_list) {
|
||||
logmsg(LOG_WARN, "-- IGNORING EVENT -- invalid watchdescriptor %i", iev->wd);
|
||||
return;
|
||||
}
|
||||
|
||||
for(i=0; i < watch_list->nr; i++) {
|
||||
|
||||
|
||||
struct watch *watch = watch_list->items[i];
|
||||
notify_event *event = notify_event_new();
|
||||
|
||||
|
|
@ -101,7 +101,7 @@ static void proc_event(struct inotify_event *iev) {
|
|||
* or some other file.
|
||||
*/
|
||||
if (iev->mask & IN_CREATE || iev->mask & IN_MOVED_TO) {
|
||||
event->dir = (iev->mask & IN_ISDIR) ? 1 :
|
||||
event->dir = (iev->mask & IN_ISDIR) ? 1 :
|
||||
is_dir(mkpath("%s/%s", event->path, event->filename));
|
||||
|
||||
event->type = NOTIFY_CREATE;
|
||||
|
|
|
|||
Reference in a new issue