Let the C preprocessor concatenates CACHEDIR string
This commit is contained in:
parent
73fa6fb9d9
commit
621e241279
1 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ static int sync_cleancache(int level)
|
||||||
for(i = clean; i; i = i->next) {
|
for(i = clean; i; i = i->next) {
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
||||||
snprintf(path, PATH_MAX, "%s%s/%s", root, CACHEDIR, (char *)i->data);
|
snprintf(path, PATH_MAX, "%s"CACHEDIR"/%s", root, (char *)i->data);
|
||||||
unlink(path);
|
unlink(path);
|
||||||
}
|
}
|
||||||
FREELIST(clean);
|
FREELIST(clean);
|
||||||
|
@ -137,7 +137,7 @@ static int sync_cleancache(int level)
|
||||||
mode_t oldmask;
|
mode_t oldmask;
|
||||||
char path[PATH_MAX];
|
char path[PATH_MAX];
|
||||||
|
|
||||||
snprintf(path, PATH_MAX, "%s%s", root, CACHEDIR);
|
snprintf(path, PATH_MAX, "%s"CACHEDIR, root);
|
||||||
|
|
||||||
printf("removing all packages from cache... ");
|
printf("removing all packages from cache... ");
|
||||||
if(rmrf(path)) {
|
if(rmrf(path)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue