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
48705611
Commit
48705611
authored
Mar 24, 2003
by
Michael Smith
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make ogginfo return a useful status code.
svn path=/trunk/vorbis-tools/; revision=4535
parent
9fd7cc41
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
ogginfo/ogginfo2.c
ogginfo/ogginfo2.c
+9
-1
No files found.
ogginfo/ogginfo2.c
View file @
48705611
...
...
@@ -92,6 +92,8 @@ static int printinfo = 1;
static
int
printwarn
=
1
;
static
int
verbose
=
1
;
static
int
flawed
;
static
stream_set
*
create_stream_set
(
void
)
{
stream_set
*
set
=
calloc
(
1
,
sizeof
(
stream_set
));
...
...
@@ -118,6 +120,7 @@ static void warn(char *format, ...)
{
va_list
ap
;
flawed
=
1
;
if
(
!
printwarn
)
return
;
...
...
@@ -130,6 +133,8 @@ static void error(char *format, ...)
{
va_list
ap
;
flawed
=
1
;
va_start
(
ap
,
format
);
vfprintf
(
stdout
,
format
,
ap
);
va_end
(
ap
);
...
...
@@ -730,9 +735,12 @@ int main(int argc, char **argv) {
}
for
(
f
=
optind
;
f
<
argc
;
f
++
)
{
flawed
=
0
;
process_file
(
argv
[
f
]);
if
(
flawed
!=
0
)
ret
=
flawed
;
}
return
0
;
return
ret
;
}
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