API and error handling cleanups

--HG--
branch : HEAD
diff --git a/lib/zip_error.c b/lib/zip_error.c
index 2e28a8c..3d5c3e1 100644
--- a/lib/zip_error.c
+++ b/lib/zip_error.c
@@ -1,5 +1,5 @@
 /*
-  $NiH: zip_error.c,v 1.1 2003/10/05 16:05:22 dillo Exp $
+  $NiH: zip_error.c,v 1.2 2003/10/06 02:50:05 dillo Exp $
 
   zip_error.c -- struct zip_error helper functions
   Copyright (C) 1999, 2003 Dieter Baron and Thomas Klausner
@@ -43,6 +43,15 @@
 
 
 void
+_zip_error_copy(struct zip_error *dst, struct zip_error *src)
+{
+    dst->zip_err = src->zip_err;
+    dst->sys_err = src->sys_err;
+}
+
+
+
+void
 _zip_error_fini(struct zip_error *err)
 {
     free(err->str);