perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Schaefer <joe+gm...@sunstarsys.com>
Subject minor type changes for debian amd64
Date Sat, 12 Jun 2004 21:59:49 GMT

Debian seems to have finally sorted out their 
amd64 port (well, everything but the name :-).
Rebuilding mp2 on that arch yields a few type
mismatches (mainly because ints aren't the
same size as pointers, I think).  Here's a
patch that eliminates all such warnings for
me (all tests still pass):

Index: src/modules/perl/modperl_global.c
===================================================================
RCS file: /home/cvspublic/modperl-2.0/src/modules/perl/modperl_global.c,v
retrieving revision 1.8
diff -u -r1.8 modperl_global.c
--- src/modules/perl/modperl_global.c   4 Mar 2004 06:01:07 -0000       1.8
+++ src/modules/perl/modperl_global.c   12 Jun 2004 21:59:00 -0000
@@ -165,7 +165,7 @@

 MP_GLOBAL_IMPL(pconf, apr_pool_t *);
 MP_GLOBAL_IMPL(server_rec, server_rec *);
-MP_GLOBAL_IMPL(threaded_mpm, int);
+MP_GLOBAL_IMPL(threaded_mpm, IV);

 #if MP_THREADED
 static apr_status_t modperl_tls_cleanup(void *data)

Index: src/modules/perl/modperl_global.h
===================================================================
RCS file: /home/cvspublic/modperl-2.0/src/modules/perl/modperl_global.h,v
retrieving revision 1.5
diff -u -r1.5 modperl_global.h
--- src/modules/perl/modperl_global.h   4 Mar 2004 06:01:07 -0000       1.5
+++ src/modules/perl/modperl_global.h   12 Jun 2004 21:59:00 -0000
@@ -59,7 +59,7 @@

 MP_GLOBAL_DECL(pconf, apr_pool_t *);
 MP_GLOBAL_DECL(server_rec, server_rec *);
-MP_GLOBAL_DECL(threaded_mpm, int);
+MP_GLOBAL_DECL(threaded_mpm, IV);

 apr_status_t modperl_tls_create(apr_pool_t *p, modperl_tls_t **key);
 apr_status_t modperl_tls_get(modperl_tls_t *key, void **data);

Index: xs/APR/Bucket/APR__Bucket.h
===================================================================
RCS file: /home/cvspublic/modperl-2.0/xs/APR/Bucket/APR__Bucket.h,v
retrieving revision 1.10
diff -u -r1.10 APR__Bucket.h
--- xs/APR/Bucket/APR__Bucket.h 9 Jun 2004 14:46:22 -0000       1.10
+++ xs/APR/Bucket/APR__Bucket.h 12 Jun 2004 21:59:01 -0000
@@ -19,7 +19,7 @@
                                         int offset, int len)
 {

-    int full_len;
+    STRLEN full_len;
     (void)SvPV(sv, full_len);

     if (len) {

-- 
Joe Schaefer


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message