From: <dg...@su...> - 2009-02-04 15:36:21
|
Author: bellmich Date: Wed Feb 4 16:34:36 2009 New Revision: 910 URL: http://libsyncml.opensync.org/changeset/910 Log: try to fix compiler error from Solaris CC Modified: trunk/libsyncml/data_sync_api/data_sync.c Modified: trunk/libsyncml/data_sync_api/data_sync.c ============================================================================== --- trunk/libsyncml/data_sync_api/data_sync.c Fri Jan 30 16:11:35 2009 (r909) +++ trunk/libsyncml/data_sync_api/data_sync.c Wed Feb 4 16:34:36 2009 (r910) @@ -535,7 +535,10 @@ SmlDataSyncDatastore *datastore = change->datastore; /* copy data */ - size_t appClassLength = index(datastore->contentType, '/') - datastore->contentType; + smlAssert(datastore->contentType); + smlAssert(index(datastore->contentType, '/')); + size_t appClassLength = ((size_t) index(datastore->contentType, '/')) - + ((size_t) datastore->contentType); if ( ( strstr(datastore->contentType, SML_CONTENT_TYPE_APPLICATION) == datastore->contentType && appClassLength == strlen(SML_CONTENT_TYPE_APPLICATION) ) || ( strstr(datastore->contentType, SML_CONTENT_TYPE_AUDIO) == datastore->contentType && |