Index: edakrill.c =================================================================== --- edakrill.c (revision 31016) +++ edakrill.c (revision 31017) @@ -170,7 +170,7 @@ if (md5_new == NULL) goto err; - f = pcb_fopen(NULL, last_sum_fn, "r"); + f = rnd_fopen(NULL, last_sum_fn, "r"); md5_last = load_md5_sum(f); if (f != NULL) fclose(f); @@ -186,7 +186,7 @@ if (fp_wget_open(url_idx_list, conf_fp_wget.plugins.fp_wget.cache_dir, &f, &fctx, mode) != 0) { rnd_message(RND_MSG_ERROR, "edakrill: failed to download the new list\n"); - pcb_remove(NULL, last_sum_fn); /* make sure it is downloaded next time */ + rnd_remove(NULL, last_sum_fn); /* make sure it is downloaded next time */ goto err; } Index: gedasymbols.c =================================================================== --- gedasymbols.c (revision 31016) +++ gedasymbols.c (revision 31017) @@ -91,7 +91,7 @@ if (md5_new == NULL) goto err; - f = pcb_fopen(NULL, last_sum_fn, "r"); + f = rnd_fopen(NULL, last_sum_fn, "r"); md5_last = load_md5_sum(f); if (f != NULL) fclose(f); @@ -107,7 +107,7 @@ if (fp_wget_open(url_idx_list, conf_fp_wget.plugins.fp_wget.cache_dir, &f, &fctx, mode) != 0) { rnd_message(RND_MSG_ERROR, "gedasymbols: failed to download the new list\n"); - pcb_remove(NULL, last_sum_fn); /* make sure it is downloaded next time */ + rnd_remove(NULL, last_sum_fn); /* make sure it is downloaded next time */ goto err; } Index: wget_common.c =================================================================== --- wget_common.c (revision 31016) +++ wget_common.c (revision 31017) @@ -51,7 +51,7 @@ len = rnd_snprintf(buff, sizeof(buff), "mkdir -p '%s'", dir); if (len >= sizeof(buff)-1) return -1; - return pcb_system(NULL, buff); + return rnd_system(NULL, buff); } int fp_wget_open(const char *url, const char *cache_path, FILE **f, int *fctx, fp_get_mode mode) @@ -98,12 +98,12 @@ /* rnd_trace("------res=%d\n", res); */ if ((res != 0) && (res != 768)) { /* some versions of wget will return error on -c if the file doesn't need update; try to guess whether it's really an error */ /* when wget fails, a 0-long file might be left there - remove it so it won't block new downloads */ - pcb_remove(NULL, cmd); + rnd_remove(NULL, cmd); } } if (f != NULL) { sprintf(cmd, "%s/%s", cache_path, cdir); - *f = pcb_fopen(NULL, cmd, "rb"); + *f = rnd_fopen(NULL, cmd, "rb"); if (*f == NULL) goto error; *fctx = FCTX_FOPEN; @@ -128,7 +128,7 @@ return -1; switch(*fctx) { - case FCTX_POPEN: pcb_pclose(*f); *f = NULL; return 0; + case FCTX_POPEN: rnd_pclose(*f); *f = NULL; return 0; case FCTX_FOPEN: fclose(*f); *f = NULL; return 0; } @@ -172,7 +172,7 @@ if ((md5_last == NULL) || (strcmp(md5_last, md5_new) != 0)) { FILE *f; - f = pcb_fopen(NULL, last_fn, "w"); + f = rnd_fopen(NULL, last_fn, "w"); fputs(md5_new, f); fclose(f); changed = 1;