Use return value (location_store_full_snapshot): Use return value

2001-07-17  Bradford Hovinen  <hovinen@ximian.com>

	* location.c (location_store): Use return value
	(location_store_full_snapshot): Use return value
This commit is contained in:
Bradford Hovinen 2001-07-17 19:04:33 +00:00 committed by Bradford Hovinen (Gdict maintainer)
parent 1e7101f61d
commit 313127a2e5
2 changed files with 10 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2001-07-17 Bradford Hovinen <hovinen@ximian.com>
* location.c (location_store): Use return value
(location_store_full_snapshot): Use return value
2001-07-12 Bradford Hovinen <hovinen@ximian.com> 2001-07-12 Bradford Hovinen <hovinen@ximian.com>
* archive.c (archive_destroy): Clear appropriate global archive pointer * archive.c (archive_destroy): Clear appropriate global archive pointer

View file

@ -519,8 +519,8 @@ location_store (Location *location, gchar *backend_id, FILE *input,
int t = 0; int t = 0;
GString *doc_str; GString *doc_str;
g_return_if_fail (location != NULL); g_return_val_if_fail (location != NULL, -2);
g_return_if_fail (IS_LOCATION (location)); g_return_val_if_fail (IS_LOCATION (location), -2);
fflush (input); fflush (input);
@ -889,7 +889,6 @@ location_load_rollback_data (Location *location, struct tm *date,
ContainmentType ContainmentType
location_contains (Location *location, gchar *backend_id) location_contains (Location *location, gchar *backend_id)
{ {
BackendNote *note;
BackendList *list; BackendList *list;
g_return_val_if_fail (location != NULL, FALSE); g_return_val_if_fail (location != NULL, FALSE);
@ -903,7 +902,7 @@ location_contains (Location *location, gchar *backend_id)
else else
return CONTAIN_NONE; return CONTAIN_NONE;
} else { } else {
note = find_note (location, backend_id); const BackendNote *note = find_note (location, backend_id);
if (note != NULL) if (note != NULL)
return note->type; return note->type;
@ -1191,8 +1190,8 @@ location_store_full_snapshot (Location *location)
GList *c; GList *c;
BackendNote *note; BackendNote *note;
g_return_if_fail (location != NULL); g_return_val_if_fail (location != NULL, -1);
g_return_if_fail (IS_LOCATION (location)); g_return_val_if_fail (IS_LOCATION (location), -1);
for (c = location->p->contains_list; c; c = c->next) { for (c = location->p->contains_list; c; c = c->next) {
note = c->data; note = c->data;