diff options
Diffstat (limited to 'calendar/conduits')
-rw-r--r-- | calendar/conduits/calendar/calendar-conduit.c | 14 | ||||
-rw-r--r-- | calendar/conduits/common/libecalendar-common-conduit.c | 18 | ||||
-rw-r--r-- | calendar/conduits/memo/memo-conduit.c | 24 | ||||
-rw-r--r-- | calendar/conduits/todo/todo-conduit.c | 14 |
4 files changed, 35 insertions, 35 deletions
diff --git a/calendar/conduits/calendar/calendar-conduit.c b/calendar/conduits/calendar/calendar-conduit.c index 2f752e015f..0052c13f30 100644 --- a/calendar/conduits/calendar/calendar-conduit.c +++ b/calendar/conduits/calendar/calendar-conduit.c @@ -419,11 +419,11 @@ static gchar *print_remote (GnomePilotRecord *remote) memset (&appt, 0, sizeof (struct Appointment)); #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { sprintf (buff, "[NULL]"); return buff; } - if(pi_buffer_append(buffer, remote->record, remote->length)==NULL){ + if (pi_buffer_append(buffer, remote->record, remote->length)==NULL) { sprintf (buff, "[NULL]"); return buff; } @@ -853,7 +853,7 @@ local_record_to_pilot_record (ECalLocalRecord *local, /* Generate pilot record structure */ #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { pi_set_error(ctxt->dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return p; } @@ -908,7 +908,7 @@ local_record_from_comp (ECalLocalRecord *local, ECalComponent *comp, ECalConduit pi_buffer_t * record; record = pi_buffer_new(DLP_BUF_SIZE); - if(record == NULL){ + if (record == NULL) { pi_set_error(ctxt->dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return; } @@ -1208,11 +1208,11 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit, #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { return NULL; } - if(pi_buffer_append(buffer, remote->record, remote->length)==NULL){ + if (pi_buffer_append(buffer, remote->record, remote->length)==NULL) { return NULL; } @@ -1604,7 +1604,7 @@ pre_sync (GnomePilotConduit *conduit, #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { pi_set_error(dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return -1; } diff --git a/calendar/conduits/common/libecalendar-common-conduit.c b/calendar/conduits/common/libecalendar-common-conduit.c index 1be106929d..eee54e71fc 100644 --- a/calendar/conduits/common/libecalendar-common-conduit.c +++ b/calendar/conduits/common/libecalendar-common-conduit.c @@ -65,18 +65,18 @@ e_pilot_add_category_if_possible(gchar *cat_to_add, struct CategoryAppInfo *cate gint retval = 0; /* 0 is the Unfiled category */ LOG(g_message("e_pilot_add_category_if_possible\n")); - for(i=0; i<PILOT_MAX_CATEGORIES; i++){ + for (i=0; i<PILOT_MAX_CATEGORIES; i++) { /* if strlen is 0, then the category is empty the PalmOS doesn't let 0-length strings for categories */ - if(strlen(category->name[i]) == 0){ + if (strlen(category->name[i]) == 0) { gint cat_to_add_len; gint desktopUniqueID; cat_to_add_len = strlen(cat_to_add); retval = i; - if(cat_to_add_len > 15){ + if (cat_to_add_len > 15) { /* Have to truncate the category name */ cat_to_add_len = 15; } @@ -85,18 +85,18 @@ e_pilot_add_category_if_possible(gchar *cat_to_add, struct CategoryAppInfo *cate * '\0' can't do direct mem transfer due to * declaration type */ - for(j=0; j<cat_to_add_len; j++){ + for (j=0; j<cat_to_add_len; j++) { category->name[i][j] = cat_to_add[j]; } - for(j=cat_to_add_len; j<16; j++) { + for (j=cat_to_add_len; j<16; j++) { category->name[i][j] = '\0'; } /* find a desktop id that is not in use between 128 and 255 */ for (desktopUniqueID = 128; desktopUniqueID <= 255; desktopUniqueID++) { gint found = 0; - for(j=0; j<PILOT_MAX_CATEGORIES; j++){ + for (j=0; j<PILOT_MAX_CATEGORIES; j++) { if (category->ID[i] == desktopUniqueID) { found = 1; } @@ -116,7 +116,7 @@ e_pilot_add_category_if_possible(gchar *cat_to_add, struct CategoryAppInfo *cate } } - if(retval == 0){ + if (retval == 0) { LOG (g_warning ("*** not adding category - category list already full ***")); } @@ -173,7 +173,7 @@ void e_pilot_remote_category_to_local(gint pilotCategory, ECalComponent *comp, s LOG(g_message("Category: %s\n", category_string)); /* TODO The calendar editor page and search bar are not updated until a restart of the evolution client */ - if(e_categories_exist(category_string) == FALSE){ + if (e_categories_exist(category_string) == FALSE) { /* add if it doesn't exist */ LOG(g_message("Category created on pc\n")); e_categories_add(category_string, NULL, NULL, TRUE); @@ -195,7 +195,7 @@ void e_pilot_remote_category_to_local(gint pilotCategory, ECalComponent *comp, s /* remove old item from list so we don't have duplicate entries */ newcat_in_list = g_slist_find_custom(c_list, category_string, (GCompareFunc)strcmp); - if(newcat_in_list != NULL) + if (newcat_in_list != NULL) { c_list = g_slist_remove(c_list, newcat_in_list->data); } diff --git a/calendar/conduits/memo/memo-conduit.c b/calendar/conduits/memo/memo-conduit.c index ae45e82439..ac28e0465c 100644 --- a/calendar/conduits/memo/memo-conduit.c +++ b/calendar/conduits/memo/memo-conduit.c @@ -332,11 +332,11 @@ static gchar *print_remote (GnomePilotRecord *remote) memset (&memo, 0, sizeof (struct Memo)); #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { sprintf (buff, "[NULL]"); return buff; } - if(pi_buffer_append(buffer, remote->record, remote->length)==NULL){ + if (pi_buffer_append(buffer, remote->record, remote->length)==NULL) { sprintf (buff, "[NULL]"); return buff; } @@ -482,7 +482,7 @@ local_record_to_pilot_record (EMemoLocalRecord *local, /* Generate pilot record structure */ #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { pi_set_error(ctxt->dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return p; } @@ -543,7 +543,7 @@ local_record_from_comp (EMemoLocalRecord *local, ECalComponent *comp, EMemoCondu #ifdef PILOT_LINK_0_12 record = pi_buffer_new(DLP_BUF_SIZE); - if(record == NULL){ + if (record == NULL) { pi_set_error(ctxt->dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return; } @@ -580,7 +580,7 @@ local_record_from_comp (EMemoLocalRecord *local, ECalComponent *comp, EMemoCondu e_cal_component_get_description_list (comp, &d_list); if (d_list) { description = (ECalComponentText *) d_list->data; - if (description && description->value){ + if (description && description->value) { local->memo->text = e_pilot_utf8_to_pchar (description->value); } else{ @@ -656,11 +656,11 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit, #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { return NULL; } - if(pi_buffer_append(buffer, remote->record, remote->length)==NULL){ + if (pi_buffer_append(buffer, remote->record, remote->length)==NULL) { return NULL; } @@ -698,16 +698,16 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit, GSList l; ECalComponentText text, sumText; - for(i = 0; i<ntext && i<50; i++){ - if(memo.text[i] == '\n'){ + for (i = 0; i<ntext && i<50; i++) { + if (memo.text[i] == '\n') { idxToUse = i; foundNL = TRUE; break; } } - if(foundNL == FALSE){ - if(ntext > 50){ + if (foundNL == FALSE) { + if (ntext > 50) { txt2 = g_strndup(memo.text, 50); } else{ @@ -884,7 +884,7 @@ pre_sync (GnomePilotConduit *conduit, #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { pi_set_error(dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return -1; } diff --git a/calendar/conduits/todo/todo-conduit.c b/calendar/conduits/todo/todo-conduit.c index 42e79d778c..89e012bfd7 100644 --- a/calendar/conduits/todo/todo-conduit.c +++ b/calendar/conduits/todo/todo-conduit.c @@ -402,11 +402,11 @@ static gchar *print_remote (GnomePilotRecord *remote) memset (&todo, 0, sizeof (struct ToDo)); #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { sprintf (buff, "[NULL]"); return buff; } - if(pi_buffer_append(buffer, remote->record, remote->length)==NULL){ + if (pi_buffer_append(buffer, remote->record, remote->length)==NULL) { sprintf (buff, "[NULL]"); return buff; } @@ -623,7 +623,7 @@ local_record_to_pilot_record (EToDoLocalRecord *local, /* Generate pilot record structure */ #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { pi_set_error(ctxt->dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return p; } @@ -678,7 +678,7 @@ local_record_from_comp (EToDoLocalRecord *local, ECalComponent *comp, EToDoCondu #ifdef PILOT_LINK_0_12 pi_buffer_t * record; record = pi_buffer_new(DLP_BUF_SIZE); - if(record == NULL){ + if (record == NULL) { pi_set_error(ctxt->dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return; } @@ -828,11 +828,11 @@ comp_from_remote_record (GnomePilotConduitSyncAbs *conduit, #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { return NULL; } - if(pi_buffer_append(buffer, remote->record, remote->length)==NULL){ + if (pi_buffer_append(buffer, remote->record, remote->length)==NULL) { return NULL; } @@ -1075,7 +1075,7 @@ pre_sync (GnomePilotConduit *conduit, #ifdef PILOT_LINK_0_12 buffer = pi_buffer_new(DLP_BUF_SIZE); - if(buffer == NULL){ + if (buffer == NULL) { pi_set_error(dbi->pilot_socket, PI_ERR_GENERIC_MEMORY); return -1; } |