if(trans->complete || trans->connectOnly) {
growing_buffer* buf = buffer_init(128);
- int i;
+ unsigned int i;
OSRF_BUFFER_ADD(buf, osrfListGetIndex(trans->messages, 0));
for(i = 1; i < trans->messages->size; i++) {
buffer_chomp(buf); // chomp off the closing array bracket
jsonObject* newObj = NULL;
const jsonObject* classObj = NULL;
const jsonObject* payloadObj = NULL;
- int i;
+ unsigned int i;
if( obj->type == JSON_HASH ) {
} else if( obj->type == JSON_ARRAY ) {
newObj = jsonNewObjectType(JSON_ARRAY);
- int i;
+ unsigned int i;
for( i = 0; i != obj->size; i++ ) {
jsonObjectSetIndex( newObj, i,
_jsonObjectEncodeClass(jsonObjectGetIndex( obj, i ), 0 ));
*/
int osrfListPushFirst( osrfList* list, void* item ) {
if(!(list && item)) return -1;
- int i;
+ unsigned int i;
for( i = 0; i < list->size; i++ )
if(!list->arrlist[i]) break;
osrfListSet( list, item, i );
*/
void osrfStringArrayRemove( osrfStringArray* arr, const char* tstr ) {
if(!(arr && tstr)) return;
- int i;
+ unsigned int i;
char* str;
int removed = 0; // boolean
const osrfMessage* omsg = NULL;
// Process each osrfMessage
- int i;
+ unsigned int i;
for( i = 0; i < router->message_list->size; ++i ) {
omsg = osrfListGetIndex( router->message_list, i );