fix warnings

--HG--
branch : HEAD
diff --git a/regress/add_from_buffer.c b/regress/add_from_buffer.c
index 67b7078..acc694c 100644
--- a/regress/add_from_buffer.c
+++ b/regress/add_from_buffer.c
@@ -1,5 +1,5 @@
 /*
-  $NiH$
+  $NiH: add_from_buffer.c,v 1.1 2005/07/15 16:53:37 wiz Exp $
 
   add_from_buffer.c -- test case for adding file from buffer to archive
   Copyright (C) 1999, 2003, 2005 Dieter Baron and Thomas Klausner
@@ -49,10 +49,8 @@
 int
 main(int argc, char *argv[])
 {
-    char *srcdata;
     const char *archive;
     struct zip *za;
-    struct zip_file *zf;
     struct zip_source *zs;
     char buf[100];
     int err;
diff --git a/regress/add_from_file.c b/regress/add_from_file.c
index 01d689a..35e3ba7 100644
--- a/regress/add_from_file.c
+++ b/regress/add_from_file.c
@@ -1,5 +1,5 @@
 /*
-  $NiH$
+  $NiH: add_from_file.c,v 1.1 2005/07/15 16:53:37 wiz Exp $
 
   add_from_file.c -- test case for adding file to archive
   Copyright (C) 1999, 2003, 2005 Dieter Baron and Thomas Klausner
@@ -47,12 +47,10 @@
 int
 main(int argc, char *argv[])
 {
-    char *srcdata;
     const char *archive;
     const char *file;
     const char *name;
     struct zip *za;
-    struct zip_file *zf;
     struct zip_source *zs;
     char buf[100];
     int err;
diff --git a/regress/add_from_filep.c b/regress/add_from_filep.c
index a478304..9c2647f 100644
--- a/regress/add_from_filep.c
+++ b/regress/add_from_filep.c
@@ -1,5 +1,5 @@
 /*
-  $NiH$
+  $NiH: add_from_filep.c,v 1.1 2005/07/17 00:01:06 wiz Exp $
 
   add_from_filep.c -- test case for adding file to archive
   Copyright (C) 1999, 2003, 2005 Dieter Baron and Thomas Klausner
@@ -47,12 +47,10 @@
 int
 main(int argc, char *argv[])
 {
-    char *srcdata;
     const char *archive;
     const char *file;
     const char *name;
     struct zip *za;
-    struct zip_file *zf;
     struct zip_source *zs;
     char buf[100];
     int err;
diff --git a/regress/mkname.c b/regress/mkname.c
index c661c53..b263f58 100644
--- a/regress/mkname.c
+++ b/regress/mkname.c
@@ -1,5 +1,5 @@
 /*
-  $NiH: open.c,v 1.4 2005/01/11 18:53:16 wiz Exp $
+  $NiH: mkname.c,v 1.1 2005/06/09 18:49:38 dillo Exp $
 
   mkname.c -- add srcdir to name
   Copyright (C) 2005 Dieter Baron and Thomas Klausner
@@ -37,6 +37,7 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#include <string.h>
 
 #include "mkname.h"
 
diff --git a/regress/name_locate.c b/regress/name_locate.c
index 7fe0061..7e086ba 100644
--- a/regress/name_locate.c
+++ b/regress/name_locate.c
@@ -1,5 +1,5 @@
 /*
-  $NiH: name_locate.c,v 1.4 2005/06/09 18:49:38 dillo Exp $
+  $NiH: name_locate.c,v 1.5 2005/07/16 17:14:32 wiz Exp $
 
   name_locate.c -- test cases for finding files in zip archives
   Copyright (C) 2005 Dieter Baron and Thomas Klausner
@@ -106,7 +106,7 @@
 	if (ze != zerr) {
 	    zip_error_to_str(expected, sizeof(expected), zerr, 0);
 	    printf("%s: unexpected error while looking for ``%s'': "
-		   "got ``%s'', prg, expected ``%s''\n", name,
+		   "got ``%s'', expected ``%s''\n", prg, name,
 		   zip_strerror(z), expected);
 	    return 1;
 	}