diff options
author | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-20 21:22:12 +0000 |
---|---|---|
committer | nw1 <nw1@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-08-20 21:22:12 +0000 |
commit | 40a432744cf507352ac798d5fcbaeb8d9535e14a (patch) | |
tree | 9056034c7df90924a5ba62520a2a1f1d1489dc47 /apps | |
parent | 3585ad08de2c78c28e4cacfebc80de58fbd0b701 (diff) | |
download | ATCD-40a432744cf507352ac798d5fcbaeb8d9535e14a.tar.gz |
*** empty log message ***
Diffstat (limited to 'apps')
-rw-r--r-- | apps/JAWS/clients/Caching/URL_Properties.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/JAWS/clients/Caching/URL_Properties.cpp b/apps/JAWS/clients/Caching/URL_Properties.cpp index 9d34c834da6..f8cbf2a7ec4 100644 --- a/apps/JAWS/clients/Caching/URL_Properties.cpp +++ b/apps/JAWS/clients/Caching/URL_Properties.cpp @@ -47,9 +47,9 @@ size_t ACE_WString_Helper::encode (void *buf, ACE_WString *wstr) { ACE_USHORT16 *wptr = (ACE_USHORT16 *) buf; - size_t i = 0; + size_t i; - for (; i <= wstr->length (); i++) + for (i= 0; i <= wstr->length (); i++) wptr[i] = htons ((*wstr)[i]); return i * sizeof (ACE_USHORT16); } @@ -58,8 +58,9 @@ size_t ACE_WString_Helper::decode (void *buf) { ACE_USHORT16 *wptr = (ACE_USHORT16 *) buf; + size_t i; - for (size_t i = 0; wptr[i] != 0; i++) + for (i = 0; wptr[i] != 0; i++) wptr[i] = ntohs (wptr[i]); return (i + 1) * sizeof (ACE_USHORT16); } |