Rename zip_error_sys_type to zip_error_get_sys_type.
Adapt callers and documentation.

--HG--
branch : HEAD
diff --git a/lib/Makefile.am b/lib/Makefile.am
index a54aac1..b515dca 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -14,8 +14,8 @@
 	zip_err_str.c \
 	zip_error.c \
 	zip_error_get.c \
+	zip_error_get_sys_type.c \
 	zip_error_strerror.c \
-	zip_error_sys_type.c \
 	zip_error_to_str.c \
 	zip_fclose.c \
 	zip_file_error_get.c \
diff --git a/lib/zip.h b/lib/zip.h
index c574351..05e6bc0 100644
--- a/lib/zip.h
+++ b/lib/zip.h
@@ -2,7 +2,7 @@
 #define _HAD_ZIP_H
 
 /*
-  $NiH: zip.h,v 1.44 2004/11/30 21:51:29 wiz Exp $
+  $NiH: zip.h,v 1.45 2004/11/30 23:02:46 wiz Exp $
 
   zip.h -- exported declarations.
   Copyright (C) 1999, 2003, 2004 Dieter Baron and Thomas Klausner
@@ -138,7 +138,7 @@
 int zip_close(struct zip *);
 int zip_delete(struct zip *, int);
 void zip_error_get(struct zip *, int *, int *);
-int zip_error_sys_type(int);
+int zip_error_get_sys_type(int);
 int zip_error_to_str(char *, size_t, int, int);
 int zip_fclose(struct zip_file *);
 void zip_file_error_get(struct zip_file *, int *, int *);
diff --git a/lib/zip_error_sys_type.c b/lib/zip_error_get_sys_type.c
similarity index 91%
rename from lib/zip_error_sys_type.c
rename to lib/zip_error_get_sys_type.c
index 7c1c899..708d774 100644
--- a/lib/zip_error_sys_type.c
+++ b/lib/zip_error_get_sys_type.c
@@ -1,7 +1,7 @@
 /*
-  $NiH$
+  $NiH: zip_error_get_sys_type.c,v 1.1 2003/10/06 02:50:06 dillo Exp $
 
-  zip_error_sys_type.c -- return type of system error code
+  zip_error_get_sys_type.c -- return type of system error code
   Copyright (C) 1999, 2003 Dieter Baron and Thomas Klausner
 
   This file is part of libzip, a library to manipulate ZIP archives.
@@ -41,7 +41,7 @@
 
 
 int
-zip_error_sys_type(int ze)
+zip_error_get_sys_type(int ze)
 {
     if (ze < 0 || ze >= _zip_nerr_str)
 	return 0;
diff --git a/lib/zip_open.c b/lib/zip_open.c
index dc25572..2d020be 100644
--- a/lib/zip_open.c
+++ b/lib/zip_open.c
@@ -1,5 +1,5 @@
 /*
-  $NiH: zip_open.c,v 1.24 2004/11/30 21:42:23 wiz Exp $
+  $NiH: zip_open.c,v 1.25 2004/12/22 15:48:37 dillo Exp $
 
   zip_open.c -- open zip archive
   Copyright (C) 1999, 2003, 2004 Dieter Baron and Thomas Klausner
@@ -213,7 +213,7 @@
 
     if (err) {
 	_zip_error_get(err, &ze, &se);
-	if (zip_error_sys_type(ze) == ZIP_ET_SYS)
+	if (zip_error_get_sys_type(ze) == ZIP_ET_SYS)
 	    errno = se;
     }