mirror of
https://github.com/ckolivas/lrzip.git
synced 2026-04-07 23:33:55 +00:00
Fix warnings.
Patch ~ by Serge Belyshev.
This commit is contained in:
parent
e856d481bf
commit
b8d8ecfe33
6 changed files with 13 additions and 7 deletions
5
lrzip.c
5
lrzip.c
|
|
@ -34,6 +34,7 @@
|
|||
#ifdef HAVE_ERRNO_H
|
||||
#include <errno.h>
|
||||
#endif
|
||||
#include <sys/mman.h>
|
||||
#include <sys/time.h>
|
||||
#include <termios.h>
|
||||
|
||||
|
|
@ -357,7 +358,7 @@ int open_tmpinfile(rzip_control *control)
|
|||
static void read_tmpinmagic(rzip_control *control)
|
||||
{
|
||||
char magic[MAGIC_LEN];
|
||||
int md5, i, tmpchar;
|
||||
int i, tmpchar;
|
||||
|
||||
memset(magic, 0, sizeof(magic));
|
||||
for (i = 0; i < 24; i++) {
|
||||
|
|
@ -946,7 +947,7 @@ void compress_file(rzip_control *control)
|
|||
const char *tmp, *tmpinfile; /* we're just using this as a proxy for control->infile.
|
||||
* Spares a compiler warning
|
||||
*/
|
||||
int fd_in, fd_out;
|
||||
int fd_in, fd_out = -1;
|
||||
char header[MAGIC_LEN];
|
||||
|
||||
if (ENCRYPT)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue