summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrjray <devnull@localhost>2002-04-11 23:07:01 +0000
committerrjray <devnull@localhost>2002-04-11 23:07:01 +0000
commit2f1222755ba4574ef358779b53a950bc5bdff1d0 (patch)
tree25492eafbeb57dc4a236352c04fcc854d6b47b1b
parent18f406d5e418289151e5c45419b157166a402f5a (diff)
downloadrpm-2f1222755ba4574ef358779b53a950bc5bdff1d0.tar.gz
rpm-2f1222755ba4574ef358779b53a950bc5bdff1d0.tar.bz2
rpm-2f1222755ba4574ef358779b53a950bc5bdff1d0.zip
Now that rpm 3.0 is no longer supported, the ERR_CHAR_CONST macro is no longer
needed. CVS patchset: 5397 CVS date: 2002/04/11 23:07:01
-rw-r--r--Perl-RPM/RPM/Error.xs10
1 files changed, 2 insertions, 8 deletions
diff --git a/Perl-RPM/RPM/Error.xs b/Perl-RPM/RPM/Error.xs
index a40e022aa..4be436bfd 100644
--- a/Perl-RPM/RPM/Error.xs
+++ b/Perl-RPM/RPM/Error.xs
@@ -4,16 +4,10 @@
#include "RPM.h"
-static char * const rcsid = "$Id: Error.xs,v 1.3 2001/05/12 11:40:27 rjray Exp $";
+static char * const rcsid = "$Id: Error.xs,v 1.4 2002/04/11 23:07:01 rjray Exp $";
static CV* err_callback;
-#if (RPM_VERSION >= 0x040002)
-# define ERR_STR_CONST const
-#else
-# define ERR_STR_CONST
-#endif
-
/*
This was static, but it needs to be accessible from other modules, as well.
*/
@@ -29,7 +23,7 @@ static void rpm_catch_errors(void)
our thread context here */
dTHX;
int error_code;
- ERR_STR_CONST char* error_string;
+ const char* error_string;
error_code = rpmErrorCode();
error_string = rpmErrorString();