rename: watchpath_addpath -> watchpath_add_path

This commit is contained in:
Albert S. 2016-05-23 18:04:53 +02:00
parent a45a7a9acf
commit 4d6d58d7bf

View File

@ -199,7 +199,7 @@ void logerror(const char *format, ...)
} }
void watchqueue_addpath(const char *pathname) void watchqueue_add_path(const char *pathname)
{ {
*watchlist = xmalloc(sizeof(struct watchlistentry)); *watchlist = xmalloc(sizeof(struct watchlistentry));
struct watchlistentry *e = *watchlist; struct watchlistentry *e = *watchlist;
@ -217,7 +217,7 @@ static int recursive_walker_callback(const char *path, const struct stat *sb,
{ {
if(typeflag == FTW_D) if(typeflag == FTW_D)
{ {
watchqueue_addpath(path); watchqueue_add_path(path);
} }
return 0; return 0;
} }
@ -381,7 +381,7 @@ void queue_watches_from_stdin()
{ {
if(line[r-1] == '\n') if(line[r-1] == '\n')
line[r-1] = 0; line[r-1] = 0;
watchqueue_addpath(line); watchqueue_add_path(line);
} }
} }
@ -523,7 +523,7 @@ void parse_options(int argc, char **argv)
break; break;
case 'w': case 'w':
watchpath = optarg; watchpath = optarg;
watchqueue_addpath(watchpath); watchqueue_add_path(watchpath);
break; break;
case 'r': case 'r':
watchpath = optarg; watchpath = optarg;
@ -589,7 +589,7 @@ void process_options()
if(watchlist_head == NULL) if(watchlist_head == NULL)
{ {
watchqueue_addpath(get_cwd()); watchqueue_add_path(get_cwd());
} }
if(mask == 0) if(mask == 0)