1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-01-14 19:24:06 +03:00

avoid unlink() and use remove() instead. Daniel

* xmlcatalog.c: avoid unlink() and use remove() instead.
Daniel
This commit is contained in:
Daniel Veillard 2001-11-04 22:19:27 +00:00
parent ea89828b38
commit 6eb1772423
2 changed files with 6 additions and 5 deletions

View File

@ -1,3 +1,7 @@
Sun Nov 4 23:18:34 CET 2001 Daniel Veillard <daniel@veillard.com>
* xmlcatalog.c: avoid unlink() and use remove() instead.
Sun Nov 4 23:12:38 CET 2001 Daniel Veillard <daniel@veillard.com>
* libxml.spec.in: cleanup

View File

@ -15,9 +15,6 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#ifdef HAVE_LIBREADLINE
#include <readline/readline.h>
@ -448,7 +445,7 @@ int main(int argc, char **argv) {
FILE *out;
if (xmlCatalogIsEmpty(catal)) {
unlink(argv[i + 1]);
remove(argv[i + 1]);
} else {
out = fopen(argv[i + 1], "w");
if (out == NULL) {
@ -462,7 +459,7 @@ int main(int argc, char **argv) {
}
if (super != NULL) {
if (xmlCatalogIsEmpty(super)) {
unlink(XML_SGML_DEFAULT_CATALOG);
remove(XML_SGML_DEFAULT_CATALOG);
} else {
out = fopen(XML_SGML_DEFAULT_CATALOG, "w");
if (out == NULL) {