When you build against newer zlib, you get a lot of warnings like so:

gznbd.c: In function 'main':
gznbd.c:87:5: warning: assignment from incompatible pointer type [enabled by 
default]
gznbd.c:109:5: warning: passing argument 1 of 'gzread' from incompatible 
pointer type [enabled by default]
In file included from gznbd.c:37:0:
/usr/include/zlib.h:1313:21: note: expected 'gzFile' but argument is of type 
'struct gzFile_s **'
gznbd.c:118:9: warning: passing argument 1 of 'gzerror' from incompatible 
pointer type [enabled by default]

This is because the zlib API uses just gzFile everywhere, not a pointer
to a gzFile.

Signed-off-by: Mike Frysinger <[email protected]>
---
 gznbd/gznbd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gznbd/gznbd.c b/gznbd/gznbd.c
index bb41156..803c1c1 100644
--- a/gznbd/gznbd.c
+++ b/gznbd/gznbd.c
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
   int pr[2];
   int sk;
   int nbd;
-  gzFile *gz;
+  gzFile gz;
   int gzerr;
 
   char chunk[CHUNK];
-- 
1.8.4.3


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general

Reply via email to