Changeset 22292
- Timestamp:
- 2010-06-23T14:18:13+12:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/runtime-src/src/z3950/z3950proxy.cpp
r15492 r22292 27 27 #include "comtypes.h" 28 28 #include <stdio.h> 29 #include <stdlib.h> 30 #include <string.h> 29 31 30 32 // z39.50 yaz stuff … … 194 196 char **c_str_titles; 195 197 int i; 196 intlast;198 long last; 197 199 198 200 if (gotsinglerecord==true) { … … 254 256 return (NULL); 255 257 } 256 last=( int)c_str_titles[0];258 last=(long)c_str_titles[0]; 257 259 for (i=1;i<=last;++i) { 258 260 titles->push_back(c_str_titles[i]); … … 310 312 if (rettitle!="unneeded") { 311 313 //int dummy; 312 if (c_str_titles!=NULL && ( int)c_str_titles[0]==1) {314 if (c_str_titles!=NULL && (long)c_str_titles[0]==1) { 313 315 rettitle.setcstr(c_str_titles[1]); // and check this 314 316 ////// free (c_str_titles); - we want to "cache" it
Note:
See TracChangeset
for help on using the changeset viewer.