mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-01-13 13:17:36 +03:00
avoid unlink() and use remove() instead. Daniel
* xmlcatalog.c: avoid unlink() and use remove() instead. Daniel
This commit is contained in:
parent
ea89828b38
commit
6eb1772423
@ -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
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user