Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Vorbis tools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
61
Issues
61
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xiph.Org
Vorbis tools
Commits
502c8736
Commit
502c8736
authored
Jan 28, 2002
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop segher from complaining.
svn path=/trunk/vorbis-tools/; revision=3001
parent
24daaa55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
vorbiscomment/vcomment.c
vorbiscomment/vcomment.c
+8
-6
No files found.
vorbiscomment/vcomment.c
View file @
502c8736
/* This program is licensed under the GNU General Public License,
* version 2, a copy of which is included with this program.
*
* (c) 2000-200
1
Michael Smith <msmith@labyrinth.net.au>
* (c) 2000-200
2
Michael Smith <msmith@labyrinth.net.au>
* (c) 2001 Ralph Giles <giles@ashlu.bc.ca>
*
* Front end to show how to use vcedit;
...
...
@@ -493,11 +493,13 @@ void close_files(param_t *p)
/* Some platforms fail to rename a file if the new name already exists,
* so we need to remove, then rename. How stupid.
*/
if
(
remove
(
p
->
infilename
))
fprintf
(
stderr
,
"Error removing old file %s
\n
"
,
p
->
infilename
);
if
(
rename
(
p
->
outfilename
,
p
->
infilename
))
fprintf
(
stderr
,
"Error renaming %s to %s
\n
"
,
p
->
outfilename
,
p
->
infilename
);
if
(
rename
(
p
->
outfilename
,
p
->
infilename
))
{
if
(
remove
(
p
->
infilename
))
fprintf
(
stderr
,
"Error removing old file %s
\n
"
,
p
->
infilename
);
else
if
(
rename
(
p
->
outfilename
,
p
->
infilename
))
fprintf
(
stderr
,
"Error renaming %s to %s
\n
"
,
p
->
outfilename
,
p
->
infilename
);
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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