From: <dg...@su...> - 2009-02-05 11:28:57
|
Author: bellmich Date: Thu Feb 5 12:27:06 2009 New Revision: 918 URL: http://libsyncml.opensync.org/changeset/918 Log: try to fix compiler error from Solaris CC Modified: trunk/libsyncml/data_sync_api/data_sync_callbacks.c Modified: trunk/libsyncml/data_sync_api/data_sync_callbacks.c ============================================================================== --- trunk/libsyncml/data_sync_api/data_sync_callbacks.c Thu Feb 5 10:29:17 2009 (r917) +++ trunk/libsyncml/data_sync_api/data_sync_callbacks.c Thu Feb 5 12:27:06 2009 (r918) @@ -553,7 +553,8 @@ type = SML_CHANGE_ADD; /* decode base64 data if necessary */ - size_t appClassLength = index(datastore->contentType, '/') - 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 && |