summaryrefslogtreecommitdiffabout
path: root/src/watcher.c
authorSergey Poznyakoff <gray@gnu.org.ua>2012-12-29 17:53:24 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2012-12-29 17:53:24 (GMT)
commita7278cd9133596c3adbad2fc03571ce8bea18272 (patch) (side-by-side diff)
tree52bf5bfb1e7c79cbf27427e45ed95902147ce2fe /src/watcher.c
parent03d27824f4cdb403de79e9ecc82037df037723db (diff)
downloadwydawca-a7278cd9133596c3adbad2fc03571ce8bea18272.tar.gz
wydawca-a7278cd9133596c3adbad2fc03571ce8bea18272.tar.bz2
Remove unnecessary virtual function.
The source_dir of a spool always refers to a directory on a file system, so the get_path method is unnecessary and is removed.
Diffstat (limited to 'src/watcher.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/watcher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/watcher.c b/src/watcher.c
index 1c67294..f6245db 100644
--- a/src/watcher.c
+++ b/src/watcher.c
@@ -79,7 +79,7 @@ create_watcher (struct spool *sp, void *data)
int ifd = *(int*)data;
struct dirwatcher *dwp;
int wd;
- const char *path = get_path (sp);
+ const char *path = sp->source_dir;
if (!sp)
return 0;

Return to:

Send suggestions and report system problems to the System administrator.