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
Open sidebar
emacs
emacs
Commits
7235a58f
Commit
7235a58f
authored
May 25, 2005
by
Thien-Thi Nguyen
Browse files
(setup_yow): Use EXIT_FAILURE in case no separators found.
(yow): Use EXIT_FAILURE in case of memory error.
parent
f75049fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
lib-src/ChangeLog
lib-src/ChangeLog
+5
-0
lib-src/yow.c
lib-src/yow.c
+3
-3
No files found.
lib-src/ChangeLog
View file @
7235a58f
2005-05-25 Thien-Thi Nguyen <ttn@gnu.org>
* yow.c (setup_yow): Use EXIT_FAILURE in case no separators found.
(yow): Use EXIT_FAILURE in case of memory error.
2005-05-13 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* make-docfile.c (DIRECTORY_SEP): New macro.
...
...
lib-src/yow.c
View file @
7235a58f
...
...
@@ -104,7 +104,7 @@ setup_yow(fp)
while
((
c
=
getc
(
fp
))
!=
SEP
)
{
if
(
c
==
EOF
)
{
fprintf
(
stderr
,
"yow: file contains no separators
\n
"
);
exit
(
2
);
exit
(
EXIT_FAILURE
);
}
}
header_len
=
ftell
(
fp
);
...
...
@@ -157,7 +157,7 @@ yow (fp)
buf
=
(
char
*
)
malloc
(
bufsize
);
if
(
buf
==
(
char
*
)
0
)
{
fprintf
(
stderr
,
"yow: virtual memory exhausted
\n
"
);
exit
(
3
);
exit
(
EXIT_FAILURE
);
}
buf
[
i
++
]
=
c
;
...
...
@@ -170,7 +170,7 @@ yow (fp)
buf
=
(
char
*
)
realloc
(
buf
,
bufsize
);
if
(
buf
==
(
char
*
)
0
)
{
fprintf
(
stderr
,
"yow: virtual memory exhausted
\n
"
);
exit
(
3
);
exit
(
EXIT_FAILURE
);
}
}
}
...
...
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