From 823a51cc74c9aba892a7120d9ad13c72ae1350d3 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 12 Mar 2011 22:50:40 +1100 Subject: [PATCH] Move const one_g to correct place. --- lrzip.c | 3 +-- stream.h | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lrzip.c b/lrzip.c index 8088090..129933e 100644 --- a/lrzip.c +++ b/lrzip.c @@ -41,6 +41,7 @@ #include "rzip.h" #include "runzip.h" #include "util.h" +#include "stream.h" #include "liblrzip.h" /* flag defines */ #define MAGIC_LEN (39) @@ -240,8 +241,6 @@ int open_tmpoutfile(rzip_control *control) return fd_out; } -extern const one_g; - static void fwrite_stdout(void *buf, i64 len) { uchar *offset_buf = buf; diff --git a/stream.h b/stream.h index b26dde2..af4db59 100644 --- a/stream.h +++ b/stream.h @@ -37,5 +37,6 @@ int write_stream(rzip_control *control, void *ss, int streamno, uchar *p, i64 le i64 read_stream(rzip_control *control, void *ss, int streamno, uchar *p, i64 len); int close_stream_out(rzip_control *control, void *ss); int close_stream_in(void *ss); +const i64 one_g; #endif