Put warning about possibly wrong password at appropriate place in stream.c

Use char to be consistent in open_stream_in.
Fail to failure() instead of fatal() should open_stream_in fail.
This commit is contained in:
Con Kolivas 2011-03-23 01:13:15 +11:00
parent 64bba65c11
commit f7a1c14e28
2 changed files with 5 additions and 3 deletions

View file

@ -303,7 +303,7 @@ static i64 runzip_chunk(rzip_control *control, int fd_in, int fd_out, int fd_his
ss = open_stream_in(control, fd_in, NUM_STREAMS, chunk_bytes);
if (unlikely(!ss))
fatal("Failed to open_stream_in in runzip_chunk\n");
failure("Failed to open_stream_in in runzip_chunk\n");
while ((len = read_header(control, ss, &head)) || head) {
switch (head) {