diff options
Diffstat (limited to 'src/modules/module-augment-properties.c')
-rw-r--r-- | src/modules/module-augment-properties.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/modules/module-augment-properties.c b/src/modules/module-augment-properties.c index bdeee291..c3f5c088 100644 --- a/src/modules/module-augment-properties.c +++ b/src/modules/module-augment-properties.c @@ -25,6 +25,7 @@ #include <sys/stat.h> #include <dirent.h> +#include <time.h> #include <pulse/xmalloc.h> #include <pulse/volume.h> @@ -190,9 +191,7 @@ static void update_rule(struct rule *r) { continue; pa_xfree(fn); - fn = pa_sprintf_malloc(DESKTOPFILEDIR - PA_PATH_SEP "%s" PA_PATH_SEP "%s.desktop", - dir->d_name, r->process_name); + fn = pa_sprintf_malloc(DESKTOPFILEDIR PA_PATH_SEP "%s" PA_PATH_SEP "%s.desktop", dir->d_name, r->process_name); if (stat(fn, &st) == 0) { found = TRUE; @@ -357,7 +356,7 @@ fail: if (ma) pa_modargs_free(ma); - return -1; + return -1; } void pa__done(pa_module *m) { |