Changeset 3539
- Timestamp:
- 08/16/08 13:13:34 (4 months ago)
- Location:
- trunk/opensync
- Files:
-
- 3 modified
-
client/opensync_client.c (modified) (1 diff)
-
engine/opensync_mapping_engine.c (modified) (1 diff)
-
format/opensync_time.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/opensync/client/opensync_client.c
r3538 r3539 1419 1419 1420 1420 /* We now connect to our incoming queue */ 1421 osync_queue_connect(client->incoming, OSYNC_QUEUE_RECEIVER, NULL); 1421 if (!osync_queue_connect(client->incoming, OSYNC_QUEUE_RECEIVER, NULL)) 1422 return TRUE; 1422 1423 1423 1424 return FALSE; -
trunk/opensync/engine/opensync_mapping_engine.c
r3538 r3539 760 760 761 761 if (osync_engine_check_get_changes(objengine->parent) && osync_bitcount(objengine->sink_errors | objengine->sink_get_changes) == g_list_length(objengine->sink_engines)) { 762 osync_obj_engine_command(objengine, OSYNC_ENGINE_COMMAND_WRITE, error); 762 if (!osync_obj_engine_command(objengine, OSYNC_ENGINE_COMMAND_WRITE, error)) 763 goto error; 763 764 } else 764 765 osync_trace(TRACE_INTERNAL, "Not triggering write. didnt receive all reads yet"); -
trunk/opensync/format/opensync_time.c
r3173 r3539 953 953 osync_trace(TRACE_ENTRY, "%s(%s)", __func__, alarm); 954 954 955 int i, secs, digits ;955 int i, secs, digits = 0; 956 956 int is_digit = 0; 957 957 int sign = 1; // when ical stamp doesn't start with '-' => seconds after event … … 1000 1000 break; 1001 1001 1002 sscanf((char*)(alarm+i),"%d",&digits); 1002 if (sscanf((char*)(alarm+i),"%d",&digits) == EOF) 1003 return -1; 1004 1003 1005 is_digit = 1; 1004 1006 break; … … 1142 1144 struct tm *osync_time_dstchange(xmlNode *dstNode) 1143 1145 { 1144 int month ;1146 int month = -1; 1145 1147 struct tm *dst_change = NULL, *tm_started = NULL; 1146 1148 char *started = NULL, *rule = NULL, *byday = NULL; … … 1160 1162 if (strstr(rule, "BYDAY=")) 1161 1163 byday = g_strdup(rule + 6); 1162 else if (strstr(rule, "BYMONTH=")) 1163 sscanf(rule, "BYMONTH=%d", &month); 1164 else if (strstr(rule, "BYMONTH=")) { 1165 if (sscanf(rule, "BYMONTH=%d", &month) == EOF) 1166 return NULL; 1167 } 1164 1168 1165 1169 xmlFree(rule); … … 1167 1171 current = current->next; 1168 1172 } 1173 1174 if (month == -1) 1175 return NULL; 1169 1176 1170 1177 dst_change = osync_time_relative2tm(byday, month, tm_started->tm_year + 1900);
