1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
--- gnome-pilot-conduits-2.0.10/memo_file/memo_file_conduit.c 2003-07-03 17:04:22.000000000 -0400
+++ gnome-pilot-conduits-2.0.10/memo_file/memo_file_conduit.c 2003-08-27 00:33:35.000000000 -0400
@@ -725,7 +725,7 @@ free_loadinfo_foreach (LoadInfo *info, g
}
/** loads the records into the abs structure */
-static gboolean
+static void
load_records (GnomePilotConduitStandardAbs *abs)
{
FILE *idfile;
@@ -743,12 +743,12 @@ load_records (GnomePilotConduitStandardA
if ((dir=opendir (GET_CONDUIT_CFG (abs)->dir))==NULL) {
LOG ("load_records cannot open %s", GET_CONDUIT_CFG (abs)->dir);
- return FALSE;
+ return;
}
if ((categories = load_categories (abs))==NULL) {
LOG ("no categories, no records");
closedir (dir);
- return FALSE;
+ return;
}
while ((de=readdir (dir))) {
GHashTable *loadinfo;
@@ -857,7 +857,7 @@ load_records (GnomePilotConduitStandardA
LOG ("records: total = %d updated = %d new = %d deleted = %d", total, updated, newrecs, deleted);
- return TRUE;
+ return;
}
@@ -886,8 +886,7 @@ pre_sync (GnomePilotConduit *c, GnomePil
return -1;
}
- if (!load_records ((GnomePilotConduitStandardAbs*)c))
- return -1;
+ load_records ((GnomePilotConduitStandardAbs*)c);
/* If local store is empty force the slow sync. */
if (g_list_length (GET_CONDUIT_DATA (c)->records)==0){
|