Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxml2
Commits
6eb17724
Commit
6eb17724
authored
Nov 04, 2001
by
Daniel Veillard
Browse files
avoid unlink() and use remove() instead. Daniel
* xmlcatalog.c: avoid unlink() and use remove() instead. Daniel
parent
ea89828b
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
6eb17724
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
...
...
xmlcatalog.c
View file @
6eb17724
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment