You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by bo...@apache.org on 2008/06/18 04:39:23 UTC
svn commit: r669058 - in /apr/apr-util/branches/1.3.x/dbd: apr_dbd_freetds.c
apr_dbd_mysql.c apr_dbd_oracle.c
Author: bojan
Date: Tue Jun 17 19:39:22 2008
New Revision: 669058
URL: http://svn.apache.org/viewvc?rev=669058&view=rev
Log:
Backport r669055 from the trunk.
Silence some compiler warnings on HP-UX.
Modified:
apr/apr-util/branches/1.3.x/dbd/apr_dbd_freetds.c
apr/apr-util/branches/1.3.x/dbd/apr_dbd_mysql.c
apr/apr-util/branches/1.3.x/dbd/apr_dbd_oracle.c
Modified: apr/apr-util/branches/1.3.x/dbd/apr_dbd_freetds.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/dbd/apr_dbd_freetds.c?rev=669058&r1=669057&r2=669058&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/dbd/apr_dbd_freetds.c (original)
+++ apr/apr-util/branches/1.3.x/dbd/apr_dbd_freetds.c Tue Jun 17 19:39:22 2008
@@ -556,14 +556,14 @@
++ptr;
continue;
}
- for (key = ptr-1; isspace(*key); --key);
+ for (key = ptr-1; apr_isspace(*key); --key);
klen = 0;
- while (isalpha(*key)) {
+ while (apr_isalpha(*key)) {
--key;
++klen;
}
++key;
- for (value = ptr+1; isspace(*value); ++value);
+ for (value = ptr+1; apr_isspace(*value); ++value);
vlen = strcspn(value, delims);
buf = apr_pstrndup(pool, value, vlen); /* NULL-terminated copy */
Modified: apr/apr-util/branches/1.3.x/dbd/apr_dbd_mysql.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/dbd/apr_dbd_mysql.c?rev=669058&r1=669057&r2=669058&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/dbd/apr_dbd_mysql.c (original)
+++ apr/apr-util/branches/1.3.x/dbd/apr_dbd_mysql.c Tue Jun 17 19:39:22 2008
@@ -1118,9 +1118,9 @@
++ptr;
continue;
}
- for (key = ptr-1; isspace(*key); --key);
+ for (key = ptr-1; apr_isspace(*key); --key);
klen = 0;
- while (isalpha(*key)) {
+ while (apr_isalpha(*key)) {
/* don't parse backwards off the start of the string */
if (key == params) {
--key;
@@ -1131,7 +1131,7 @@
++klen;
}
++key;
- for (value = ptr+1; isspace(*value); ++value);
+ for (value = ptr+1; apr_isspace(*value); ++value);
vlen = strcspn(value, delims);
for (i = 0; fields[i].field != NULL; i++) {
if (!strncasecmp(fields[i].field, key, klen)) {
Modified: apr/apr-util/branches/1.3.x/dbd/apr_dbd_oracle.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.3.x/dbd/apr_dbd_oracle.c?rev=669058&r1=669057&r2=669058&view=diff
==============================================================================
--- apr/apr-util/branches/1.3.x/dbd/apr_dbd_oracle.c (original)
+++ apr/apr-util/branches/1.3.x/dbd/apr_dbd_oracle.c Tue Jun 17 19:39:22 2008
@@ -407,9 +407,9 @@
++ptr;
continue;
}
- for (key = ptr-1; isspace(*key); --key);
+ for (key = ptr-1; apr_isspace(*key); --key);
klen = 0;
- while (isalpha(*key)) {
+ while (apr_isalpha(*key)) {
if (key == params) {
/* Don't parse off the front of the params */
--key;
@@ -420,7 +420,7 @@
++klen;
}
++key;
- for (value = ptr+1; isspace(*value); ++value);
+ for (value = ptr+1; apr_isspace(*value); ++value);
vlen = strcspn(value, delims);
for (i=0; fields[i].field != NULL; ++i) {
if (!strncasecmp(fields[i].field, key, klen)) {